Boost logo

Boost Users :

From: Simon Bailey (conic_at_[hidden])
Date: 2003-04-07 21:25:28


What is the latest thinking on making condition::wait() and
condition::timed_wait() "alertable" in the Win32 environment?

Please consider this a "me too" request for such a feature!

I'm trying to implement a cross-platform (Unix, Windows)
implementation of a Proactor pattern that manages asynchronous
sockets.

It seems that the way to implement this pattern with as much code
common to both platforms as possible is to use
1. Overlapped sockets that call back (not post messages) in Windows.
2. Signals in Unix (similar to the Windows call backs but with less-
clear semantics in my mind).

For this scheme to work, the wait functions need to be alertable in
Windows, but the Unix system shouldn't need any changes.

>From the research that I have done so far, in my particular case, I
would only need wait and timed_wait to be alertable, and it would be
appropriate that they were always altertable - I would not need a
way to enable or disable this feature.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net