monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Merging cvssync in small pieces: Pipe abstraction


From: Zbynek Winkler
Subject: Re: [Monotone-devel] Merging cvssync in small pieces: Pipe abstraction
Date: Fri, 07 Oct 2005 14:44:21 +0200
User-agent: Debian Thunderbird 1.0.2 (X11/20050602)

Christof Petig wrote:

So here's my first part:
- nonblocking win32 pipe classes. Tested and working on unix, Compiling
and blocking on win32 :-(
By blocking I meant: Not doing anything.

I've not seen your code but maybe this can help with nonblocking pipes
under windows
http://mail.python.org/pipermail/python-dev/2001-January/012179.html
Interesting link. But my main problem was/is to emulate select (with
timeout) on a pipe on Win32. I do not (yet) see where this could help here.
It is about how to do nonblocking check on a file descriptor descriptor to see if there is some data available. It is not as heavy weight as a full select.

If you need the full select, why don't you try WaitForMultipleObjects(Ex)? IIRC it should allow you to wait on any waitable object (file descriptor should be waitable) with timeout...

Zbynek

--
http://zw.matfyz.cz/     http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic





reply via email to

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