| 69 | } |
| 70 | |
| 71 | void thread::detach() |
| 72 | { |
| 73 | int err = EINVAL; |
| 74 | |
| 75 | if (joinable()) |
| 76 | err = pthread_detach(native_handle()); |
| 77 | if (err) |
| 78 | { |
| 79 | throw_system_error(err, "thread::detach failed"); |
| 80 | } |
| 81 | |
| 82 | _m_thr = id(); |
| 83 | } |
| 84 | |
| 85 | // TODO: not yet actually implemented. |
| 86 | // The standard states that the returned value should only be considered a hint. |
nothing calls this directly
no test coverage detected