Boost logo

Boost :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2005-10-07 03:05:29

"Peter Dimov" <pdimov_at_[hidden]> writes:

> I have produced a read/write mutex implementation as a side effect,
> available at
> that is lock-free when there is no contention (i.e. when a reader attempts a
> lock and no writers are active, or when a writer attempts a lock and the
> lock is free.)

wrlock() always locks not one, but *two* mutexes. I don't call that "lock
free". It might be that the mutex implementation doesn't require an OS
resource when there is no contention, but that's a separate matter.


Anthony Williams
Software Developer
Just Software Solutions Ltd

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