On Tue, Jul 24, 2001, Brent Phillips wrote:

> Is it possible to use the pTh event mechanism to prevent the whole process 
> from blocking on a flush? I'm primarily thinking of using it for sockets. 
> Would it matter if the  socket is in blocking or non-blocking mode? 
> Ideally, I'd like to close the socket on a thread that blocks until the 
> flush is done, but I'm happy with any way that doesn't block the whole 
> process.

What exactly do you mean by "flush"? A socket by default has no
explicitly flushable buffer AFAIK. So I guess you are using stdio's
fflush() on a fdopen'ed socket? What system calls are you using?

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to