Boost logo

Boost Users :

Subject: Re: [Boost-users] [rerepost][threads] recursive shared_mutex
From: Filip Konvička (filip.konvicka_at_[hidden])
Date: 2009-05-06 10:58:19


> 2. The basic technique is
>
> http://www.decadentplace.org.uk/pipermail/cpp-threads/2006-August/001082.html
>
>
> (except that the store_release to count_ is not necessary, it's under a
> lock, count_ = 1 is sufficient)
>
> but, as I point out, it requires an atomic thread ID type.

One could probably use boost::detail::spinlock_pool for that. Peter,
thanks for providing this :-) BTW, do you plan to release spinlocks as a
regular Boost library?

Regards,
Filip


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net