| 733 | |
| 734 | #ifdef BOOST_THREAD_PLATFORM_PTHREAD |
| 735 | inline thread::id thread::get_id() const BOOST_NOEXCEPT |
| 736 | { |
| 737 | #if defined BOOST_THREAD_PROVIDES_BASIC_THREAD_ID |
| 738 | return const_cast<thread*>(this)->native_handle(); |
| 739 | #else |
| 740 | detail::thread_data_ptr const local_thread_info=(get_thread_info)(); |
| 741 | return (local_thread_info? id(local_thread_info) : id()); |
| 742 | #endif |
| 743 | } |
| 744 | |
| 745 | namespace this_thread |
| 746 | { |
no test coverage detected