Boost logo

Boost :

Subject: Re: [boost] wait-free fast-pathed, bounded-time, 100% starvation-free rw-mutex...
From: Chris M. Thomasson (cristom_at_[hidden])
Date: 2009-08-22 06:43:16

"Andrey Semashev" <andrey.semashev_at_[hidden]> wrote in message
> DE wrote:
>> on 21.08.2009 at 18:44
>> Chris M. Thomasson wrote :
>>> I was wondering if the following invention of mine might be of use to
>>> Boost:
>>> (please __read_all__; thank you)
>>> do_not_automatically_unlock__very_dangerous_and_deadlock_prone__experts_only()
>> it might be right that!!!
> Agreed. :)
> I think, support form moving locker guards and delayed locking is the
> right solution for this need.

I think you are right.

> As for the initial proposal, if it really does fulfill the stated
> features, I'm all for including it into Boost.Thread.

This version does indeed fulfill all of the stated features/claims:

However this version:

will only support bounded-time starvation-free writer only contention if the
underlying mutex has said properties. It still will not starve in the sense
of reads to writes, or even pure reads. But pure writes are at the mercy of
the underlying mutex implementation.

> However, I'd like to see Anthony's opinion on this.

I hope he thinks it's worthy because IMHO Boost has no room for crappy
synchronization algorithms...


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