Boost logo

Boost :

Subject: [boost] Notice: Boost.Atomic (atomic operations library)
From: Helge Bahmann (hcb_at_[hidden])
Date: 2009-11-29 17:49:52


Hello,

as promised I have started extracting an atomic operations library. Current
state is available at:

http://www.chaoticmind.net/~hcb/projcets/boost.atomic

It implements boost::atomic<TYPE> which faithfully mimics std::atomic<TYPE> as
specified in the C++0x draft standard. As allowed by the standard, operations
transparently fall back to locking when the underlying architecture does not
support the requested operation, so the library already contains a "fallback"
implementation that works an all platforms (using mutex from boost::thread).

It currently natively supports gcc/x86, gcc/powerpc and gcc/alpha (I can vouch
for the correctness of the implementations on these targets). It contains
some entirely untested support for building implementations from CAS
operations on other systems (e.g. _InterlockedCompareExchange on win), so I
would greatly appreciate any feedback if it works/doesn't on any particular
platform.

There is some preliminary documentation, but not in boostdoc format -- after
unsuccessfully struggling with bjam/boostbook & friends for a few hours I
simply gave up and reverted to trusty old doxygen :(

Is there any step-by-step guide on how to create, build and document a new
library? I could really use that as the boost build and documentation system
is pretty alien to an autotools-accustomed guy like me.

Best regards
Helge


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk