Ticket #11302: boost-tls.patch
File boost-tls.patch, 1.0 KB (added by , 7 years ago) |
---|
-
boost_1_51_0/libs/thread/src/pthread/once.cpp
old new 8 8 #include <boost/assert.hpp> 9 9 #include <pthread.h> 10 10 #include <stdlib.h> 11 #if defined BOOST_THREAD_PATCH 12 #include <string.h> // memcmp. 13 #endif 11 14 #include <memory> 12 15 13 16 namespace boost -
boost_1_58_0/libs/thread/src/pthread/thread.cpp
old new 124 124 } 125 125 ~delete_current_thread_tls_key_on_dlclose_t() 126 126 { 127 if (current_thread_tls_init_flag.epoch!=BOOST_ONCE_INITIAL_FLAG_VALUE) 127 const boost::once_flag uninitialized=BOOST_ONCE_INIT; 128 if (memcmp(¤t_thread_tls_init_flag,&uninitialized,sizeof(boost::once_flag))) 128 129 { 129 130 pthread_key_delete(current_thread_tls_key); 130 131 }