| 54 | } |
| 55 | |
| 56 | void thread::join() |
| 57 | { |
| 58 | int err = EINVAL; |
| 59 | |
| 60 | if (joinable()) |
| 61 | err = pthread_join(native_handle(), NULL); |
| 62 | |
| 63 | if (err) |
| 64 | { |
| 65 | throw_system_error(err, "thread::join failed"); |
| 66 | } |
| 67 | |
| 68 | _m_thr = id(); |
| 69 | } |
| 70 | |
| 71 | void thread::detach() |
| 72 | { |
nothing calls this directly
no test coverage detected