comparison DEPENDENCIES/generic/include/boost/regex/pending/static_mutex.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
123 // may need to be called more than once - but only once per instance. 123 // may need to be called more than once - but only once per instance.
124 // 124 //
125 // Since this preprocessor path is almost never taken, we hide these header 125 // Since this preprocessor path is almost never taken, we hide these header
126 // dependencies so that build tools don't find them. 126 // dependencies so that build tools don't find them.
127 // 127 //
128 #define B1 <boost/thread/once.hpp> 128 #define BOOST_REGEX_H1 <boost/thread/once.hpp>
129 #define B2 <boost/thread/recursive_mutex.hpp> 129 #define BOOST_REGEX_H2 <boost/thread/recursive_mutex.hpp>
130 #include B1 130 #define BOOST_REGEX_H3 <boost/thread/lock_types.hpp>
131 #include B2 131 #include BOOST_REGEX_H1
132 #undef B1 132 #include BOOST_REGEX_H2
133 #undef B2 133 #include BOOST_REGEX_H3
134 #undef BOOST_REGEX_H1
135 #undef BOOST_REGEX_H2
136 #undef BOOST_REGEX_H3
134 137
135 namespace boost{ 138 namespace boost{
136 139
137 class BOOST_REGEX_DECL scoped_static_mutex_lock; 140 class BOOST_REGEX_DECL scoped_static_mutex_lock;
138 extern "C" BOOST_REGEX_DECL void boost_regex_free_static_mutex(); 141 extern "C" BOOST_REGEX_DECL void boost_regex_free_static_mutex();
156 operator void const*()const; 159 operator void const*()const;
157 bool locked()const; 160 bool locked()const;
158 void lock(); 161 void lock();
159 void unlock(); 162 void unlock();
160 private: 163 private:
161 boost::recursive_mutex::scoped_lock* m_plock; 164 boost::unique_lock<boost::recursive_mutex>* m_plock;
162 bool m_have_lock; 165 bool m_have_lock;
163 }; 166 };
164 167
165 inline scoped_static_mutex_lock::operator void const*()const 168 inline scoped_static_mutex_lock::operator void const*()const
166 { 169 {