|
Boost : |
From: Lars Gullik Bjønnes (larsbj_at_[hidden])
Date: 2002-05-15 05:45:11
Something like this might work for gcc.
I have not tested it, especially the use of __exchange_and_add must be
revised.
If something like this is added the lwm_linux.hpp can probably just be
removed.
Index: boost/detail/lightweight_mutex.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/detail/lightweight_mutex.hpp,v
retrieving revision 1.5
diff -u -p -r1.5 lightweight_mutex.hpp
--- boost/detail/lightweight_mutex.hpp 15 Mar 2002 22:00:07 -0000 1.5
+++ boost/detail/lightweight_mutex.hpp 15 May 2002 10:34:33 -0000
@@ -47,6 +47,8 @@
#ifndef BOOST_HAS_THREADS
# include <boost/detail/lwm_nop.hpp>
+#elif defined(__GLIBCPP__)
+# include <boost/detail/lwm_gcc.hpp>
#elif defined(BOOST_USE_ASM_ATOMIC_H)
# include <boost/detail/lwm_linux.hpp>
#elif defined(BOOST_LWM_USE_CRITICAL_SECTION)
-- Lgb
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk