|
Threads-Devel : |
Subject: Re: [Threads-devel] boost.thread low-level primitives?
From: Anthony Williams (anthony_at_[hidden])
Date: 2009-10-28 12:46:26
Tim Blechmann wrote:
> i am regularly using primitives like spinlocks or semaphores for
> low-level synchronization issues.
> i am curious, why these primitives don't exist? would there be some
> interest in adding such classes to boost.thread?
A long time ago, before I got involved with Boost.thread, it was decided
that semaphores were too low-level, and hard to program with. I don't
know whether spinlocks were also considered.
I'm happy to revisit these decisions if there's a consensus to do so.
Anthony
-- Author of C++ Concurrency in Action | http://www.manning.com/williams just::thread C++0x thread library | http://www.stdthread.co.uk Just Software Solutions Ltd | http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976