john heasley wrote:
> i am expecting __pthread_*() functions to yield the processor if they would
> block, but that does not seem to be the case. the __pthread_poll (or
> pth_poll()) block the entire process for _poll()'s timeout period.
>
> am i misunderstanding the way which the __pthread_*() functions should work?
I think pth_read() will normally block unless you use pth_fdmode() to
set the descriptor to non-blocking.
Sometimes when you have to both read and write it's easier to spawn
two threads, one for reading and one for writing.
-Archie
__________________________________________________________________________
Archie Cobbs * Packet Design * http://www.packetdesign.com
______________________________________________________________________
GNU Portable Threads (Pth) http://www.gnu.org/software/pth/
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager (Majordomo) [EMAIL PROTECTED]