On 2 May 2014 at 9:37, Antony Polukhin wrote:
This is just a refining of idea that was once implemented and worked well. The idea was to make shared spin lock. Here is some pseudo-code: [snip]
Is there an interest in such shared_spinlock_t? Any comments, suggestions?
Two points: 1. I have a TSX capable policy based compile time configurable spin lock in AFIO which might be useful. It really ought to enter Boost.Detail. It should work in shared memory. 2. Later today hopefully I'll ask this list for review of a new Boost.Thread object, the permit. The underlying POSIX permit written in C works in shared memory (the C++ object not so). Niall -- Currently unemployed and looking for work in Ireland. Work Portfolio: http://careers.stackoverflow.com/nialldouglas/