| 95 | } |
| 96 | |
| 97 | void Thread::cancelThread() { |
| 98 | if (_state == State::Unknown) { |
| 99 | return; |
| 100 | } |
| 101 | pthread_cancel(_thread); |
| 102 | _state = State::Unknown; |
| 103 | } |
| 104 | |
| 105 | void Thread::joinThread() { |
| 106 | if (_state == State::Unknown) { |
nothing calls this directly
no outgoing calls
no test coverage detected