Ticket #7161: spirit.classic.patch
File spirit.classic.patch, 1.6 KB (added by , 10 years ago) |
---|
-
boost/spirit/home/classic/core/non_terminal/impl/object_with_id.ipp
BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN 136 136 { 137 137 { 138 138 #ifdef BOOST_SPIRIT_THREADSAFE 139 #ifndef BOOST_THREAD_PROVIDES_ONCE_CXX11 139 140 static boost::once_flag been_here = BOOST_ONCE_INIT; 141 #else 142 static boost::once_flag been_here; 143 #endif 140 144 boost::call_once(been_here, mutex_init); 141 145 boost::mutex &mutex = mutex_instance(); 142 146 boost::mutex::scoped_lock lock(mutex); -
boost/spirit/home/classic/core/non_terminal/impl/static.hpp
BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN 111 111 typename static_<T, Tag>::storage_type static_<T, Tag>::data_; 112 112 113 113 template <class T, class Tag> 114 #ifndef BOOST_THREAD_PROVIDES_ONCE_CXX11 114 115 once_flag static_<T, Tag>::constructed_ = BOOST_ONCE_INIT; 116 #else 117 once_flag static_<T, Tag>::constructed_; 118 #endif 115 119 116 120 BOOST_SPIRIT_CLASSIC_NAMESPACE_END 117 121 -
boost/spirit/home/classic/phoenix/closures.hpp
private: 419 419 closure_frame_holder_ref(holder_t* holder_ = 0) 420 420 { 421 421 #ifdef PHOENIX_THREADSAFE 422 #ifndef BOOST_THREAD_PROVIDES_ONCE_CXX11 422 423 static boost::once_flag been_here = BOOST_ONCE_INIT; 424 #else 425 static boost::once_flag been_here; 426 #endif 423 427 boost::call_once(been_here, tsp_frame_instance_init); 424 428 boost::thread_specific_ptr<holder_t*> &tsp_frame = tsp_frame_instance(); 425 429 if (!tsp_frame.get())