| 61 | } |
| 62 | |
| 63 | void base::thread::join() |
| 64 | { |
| 65 | if (joinable()) { |
| 66 | #ifdef _WIN32 |
| 67 | ::WaitForSingleObject(m_native_handle, INFINITE); |
| 68 | #else |
| 69 | ::pthread_join((pthread_t)m_native_handle, NULL); |
| 70 | #endif |
| 71 | m_native_handle = (native_handle_type)0; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | void base::thread::detach() |
| 76 | { |
no outgoing calls