MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / thread_get_state

Function thread_get_state

TactilityKernel/source/concurrent/thread.cpp:166–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166ThreadState thread_get_state(Thread* thread) {
167 check(xPortInIsrContext() == pdFALSE);
168 thread->lock();
169 ThreadState state = thread->state;
170 thread->unlock();
171 return state;
172}
173
174error_t thread_start(Thread* thread) {
175 thread->lock();

Callers 1

ThreadTest.cppFile · 0.85

Calls 3

checkFunction · 0.50
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected