Ticket #2741: 2741_b.patch
File 2741_b.patch, 757 bytes (added by , 13 years ago) |
---|
-
pthread/thread.cpp
199 199 throw thread_resource_error(); 200 200 } 201 201 } 202 #ifdef BOOST_THREAD_HAS_THREAD_ATTR 203 void thread::start_thread(thread_attributes& attr) 204 { 205 thread_info->self=thread_info; 206 thread_attributes::native_handle_type h = attr.native_handle(); 207 int const res = pthread_create(&thread_info->thread_handle, &h, &thread_proxy, thread_info.get()); 208 if (res != 0) 209 { 210 thread_info->self.reset(); 211 throw thread_resource_error(); 212 } 213 } 214 #endif 202 215 203 216 thread::~thread() 204 217 {