You have to do it thru the underlying system-specific handle obtained by boost::thread::native_handle().
You have to do it thru the underlying system-specific handle obtained by boost::thread::native_handle().