Ok, got it.
Thanks you all very much.


On Thu, Mar 27, 2014 at 7:11 PM, Steven Watanabe <watanabesj@gmail.com> wrote:
AMDG

On 03/27/2014 09:09 AM, Elad Moshe wrote:
>> If both threads tried to upgrade, you would have a deadlock.
>
> But how is it possible? isn't the upgrade operation atomic?
> if the 2 threads try to upgrade, one will succeed and the other one will
> block until the first thread will unlock.
>

If it worked this way, it would mean that upgrade
lock would not exclude concurrent writes, which
completely defeats the point of using it in the
first place.

In Christ,
Steven Watanabe

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users