bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One more thread question


From: Steven Seeger
Subject: Re: One more thread question
Date: Wed, 27 Oct 2004 13:39:37 -0700
User-agent: Microsoft-Entourage/11.0.0.040405

No there is no data. The problem isn't with wgetch() but actually with
select on stdin. If I'm in a pthread, select will wait properly. If I hit
one character select just starts returning all the time (with a 0, oddly
enough) even though I read the character. It must have something to do with
the controlling terminal or something.

Steve


On 10/27/04 1:37 PM, "Thomas Dickey" <address@hidden> wrote:

> On Tue, 26 Oct 2004, Steven Seeger wrote:
> 
>> For some reason select on stdin and halfdelay (I tried both!) mode do not
>> wait for the timeout when checking input in a pthread. Is there any reason
>> for this?
> 
> That's a maximum timeout - if there's data then it should return sooner.
> Perhaps that's the problem?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]