Boost logo

Boost :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2007-05-09 10:40:28

Andrey Semashev <andysem_at_[hidden]> writes:

> Hello Anthony,
> Wednesday, May 9, 2007, 10:55:57 AM, you wrote:
>>> Excuse me for a bit of offtopic. Is this new version in the CVS HEAD? If
>>> not, is it available somewhere? I'm asking because I use it in my
>>> upcoming library the way it is in the HEAD.
>> No, it's on the thread_rewrite branch. We intend to move it to the main
>> development branch after the switch to subversion.
> I've tried to compile this version with VC8 and got errors that
> boost::detail::win32::timeout is not defined. I guess this constant is
> missing in the thread_primitives.hpp file. I've attached the patch
> that fix it.

Oops, I forgot to check that in. Thanks for spotting.

> BTW, will there be any way to specify the priority for readers and
> writers for read/write mutex?

No. This implementation is "fair" --- blocked writers will stop new readers,
but when the current writer or last current reader unlocks, all waiting
threads are unblocked, so one waiting writer or some waiting readers may then


Anthony Williams
Just Software Solutions Ltd -
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

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