Boost logo

Boost :

From: Michael Glassford (glassfordm_at_[hidden])
Date: 2004-02-16 12:01:33


The thread_dev branch in CVS contains a barrier class that I would like
to move to the main branch, as has recently been requested by more than
one Booster. Is anyone aware of any problems that should be addressed
before this happens? For reference, see

thread.hpp,
http://cvs.sourceforge.net/viewcvs.py/*checkout*/boost/boost/boost/thread/Attic/barrier.hpp?content-type=text%2Fplain&rev=1.1.4.3

and

thread.cpp,
http://cvs.sourceforge.net/viewcvs.py/*checkout*/boost/boost/libs/thread/src/Attic/barrier.cpp?content-type=text%2Fplain&rev=1.1.4.2

One potential problem that I am aware of is that it is possible for the
m_generation counter (see barrier.cpp) to overflow on systems that
detect overflow of integer addition instead of wrapping (I assume there
are such systems though I've never used one). Is it worthwhile checking
for this and forcing wrapping in code?

Mike


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