On Sat, 09 May 2015 21:32:42 -0400, Mike <n...@none.com> wrote:

it looks like what you are trying to implement is what `synchronized` already provides: http://ddili.org/ders/d.en/concurrency_shared.html#ix_concurrency_shared.synchronized

Mike

Yes, but synchronized uses a mutex. Spin locks can perform better in situations where there won't be much contention for the lock.

  Bit

Reply via email to