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

Method join

source/threads/ThreadCommon.cpp:114–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114int ThreadCommon::join()
115{
116 CHECK_FUNCTION_CONTEXT();
117
118 if (&getThreadControlBlock() == &getScheduler().getCurrentThreadControlBlock())
119 return EDEADLK;
120
121 int ret;
122 while ((ret = joinSemaphore_.wait()) == EINTR);
123 return ret;
124}
125
126#if DISTORTOS_SIGNALS_ENABLE == 1
127

Callers 15

generateFunction · 0.45
mainFunction · 0.45
run_Method · 0.45
run_Method · 0.45
run_Method · 0.45
run_Method · 0.45
run_Method · 0.45
run_Method · 0.45
phase1Function · 0.45
phase2Function · 0.45
phase3Function · 0.45
phase4Function · 0.45

Calls 1

waitMethod · 0.45

Tested by 15

generateFunction · 0.36
run_Method · 0.36
run_Method · 0.36
run_Method · 0.36
run_Method · 0.36
run_Method · 0.36
run_Method · 0.36
phase1Function · 0.36
phase2Function · 0.36
phase3Function · 0.36
phase4Function · 0.36
phase5Function · 0.36