Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-07-07 06:09:34

Jon Biggar wrote:
> There is actually one case that needs a semaphore that has no reasonable
> alternative in pthreads. The only pthread synchronization operation
> that is asynch-reentrant safe (i.e. can be called from a signal handler)
> is signaling a pthread semaphore.

There's no such thing as "a pthread semaphore". In a *threaded* POSIX
program you can use sigwait() and/or SIGEV_THREAD delivery.

> It would be nice if there was some abstraction available in boost
> threads that used this mechanism internally to get the needed behavior,
> but encapsulated to hide the error-proneness of a raw semaphore.




Boost list run by bdawes at, gregod at, cpdaniel at, john at