Ticket #5170: thread.patch
File thread.patch, 1.8 KB (added by , 12 years ago) |
---|
-
libs/thread/src/pthread/
old new 50 50 51 51 extern "C" 52 52 { 53 void tls_destructor(void* data)53 static void tls_destructor(void* data) 54 54 { 55 55 boost::detail::thread_data_base* thread_info=static_cast<boost::detail::thread_data_base*>(data); 56 56 if(thread_info) … … 111 111 { 112 112 extern "C" 113 113 { 114 void* thread_proxy(void* param)114 static void* thread_proxy(void* param) 115 115 { 116 116 boost::detail::thread_data_ptr thread_info = static_cast<boost::detail::thread_data_base*>(param)->self; 117 117 thread_info->self.reset(); -
libs/thread/src/pthread/
old new 22 22 pthread_key_t epoch_tss_key; 23 23 pthread_once_t epoch_tss_key_flag=PTHREAD_ONCE_INIT; 24 24 25 extern "C" void delete_epoch_tss_data(void* data)25 extern "C" 26 26 { 27 free(data); 27 static void delete_epoch_tss_data(void* data) 28 { 29 free(data); 30 } 28 31 } 29 32 30 extern "C" void create_epoch_tss_key()33 extern "C" 31 34 { 32 BOOST_VERIFY(!pthread_key_create(&epoch_tss_key,delete_epoch_tss_data)); 35 static void create_epoch_tss_key() 36 { 37 BOOST_VERIFY(!pthread_key_create(&epoch_tss_key,delete_epoch_tss_data)); 38 } 33 39 } 34 40 35 41 }