6 May
2009
6 May
'09
2:58 p.m.
2. The basic technique is
http://www.decadentplace.org.uk/pipermail/cpp-threads/2006-August/001082.htm...
(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