MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / cancelThread

Method cancelThread

src/base/Thread.cpp:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected