Ticket #2741: 2741_b.patch

File 2741_b.patch, 757 bytes (added by viboes, 13 years ago)

patch src

  • pthread/thread.cpp

     
    199199            throw thread_resource_error();
    200200        }
    201201    }
     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
    202215
    203216    thread::~thread()
    204217    {