
On Feb 3, 2008 5:20 AM, Phil Endecott <spam_from_boost_dev@chezphil.org> wrote:
Gregory Dai wrote:
I search "spinlock" @boost.org, which turned up nothing. Anyone aware of such an implementation.
A while ago I presented some benchmarks comparing different types of mutex including a spinlock. See e.g. http://thread.gmane.org/gmane.comp.lib.boost.devel/166875.
My implementations at that time were just ad-hoc code for benchmarking. I've recently been turning it into something more useful and will post a message here about it soon.
Your implementation posted on gmane.org is straightforward and efficient! How does it compare with your latest version? To make this cross-platform, we really need an implementation of
atomics like e.g. N2427.
Your impl. is Linux-based, while Neil's is Windows exclusive. Perhaps you could cooperate with Neil and come up with a joint contribution? Greg