Ticket #7078: thread.patch
File thread.patch, 1.0 KB (added by , 10 years ago) |
---|
-
libs\thread\src\win32\thread.cpp
218 218 ResumeThread(thread_info->thread_handle); 219 219 } 220 220 221 221 void thread::start_thread(const attributes& attr) 222 222 { 223 223 //uintptr_t const new_thread=_beginthreadex(attr.get_security(),attr.get_stack_size(),&thread_start_function,thread_info.get(),CREATE_SUSPENDED,&thread_info->id); 224 uintptr_t const new_thread=_beginthreadex(0, attr.get_stack_size(),&thread_start_function,thread_info.get(),CREATE_SUSPENDED,&thread_info->id);224 uintptr_t const new_thread=_beginthreadex(0,static_cast<unsigned int>(attr.get_stack_size()),&thread_start_function,thread_info.get(),CREATE_SUSPENDED,&thread_info->id); 225 225 if(!new_thread) 226 226 { 227 227 boost::throw_exception(thread_resource_error()); 228 228 } 229 229 intrusive_ptr_add_ref(thread_info.get()); 230 230 thread_info->thread_handle=(detail::win32::handle)(new_thread);