Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-11-22 06:46:02


An excerpt from boost/config/sugffix.hpp:

//
// Turn threading support off if we don't recognise the threading API:
//
#if defined(BOOST_HAS_THREADS) && !defined(BOOST_HAS_PTHREADS)\
      && !defined(BOOST_HAS_WINTHREADS) && !defined(BOOST_HAS_BETHREADS)
# undef BOOST_HAS_THREADS
#endif

What is the purpose of the above? Since BOOST_HAS_THREADS is defined, we
know that we are in multithreaded mode... Why turn it off? This would lie to
boost libraries that they can assume single thread and disable thread
safety.

--
Peter Dimov
Multi Media Ltd.

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