MCPcopy Create free account
hub / github.com/DISTORTEC/distortos / threadExiter

Function threadExiter

source/threads/threadExiter.cpp:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29+---------------------------------------------------------------------------------------------------------------------*/
30
31void threadExiter(RunnableThread& runnableThread)
32{
33 {
34 const InterruptMaskingLock interruptMaskingLock;
35
36 runnableThread.exit0Hook();
37 internal::getScheduler().remove();
38 runnableThread.exit1Hook();
39 }
40
41 internal::forceContextSwitch();
42
43 while (1);
44}
45
46} // namespace internal
47

Callers 2

exitFunction · 0.85
threadRunnerFunction · 0.85

Calls 4

forceContextSwitchFunction · 0.85
exit0HookMethod · 0.45
removeMethod · 0.45
exit1HookMethod · 0.45

Tested by

no test coverage detected