MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / join

Method join

components/libc/cplusplus/os/cxx_Thread.cpp:100–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100rt_err_t Thread::join(int32_t millisec)
101{
102 if (started)
103 {
104 rt_int32_t tick;
105
106 if (millisec < 0)
107 tick = -1;
108 else
109 tick = rt_tick_from_millisecond(millisec);
110
111 return rt_event_recv(&_event, 1, RT_EVENT_FLAG_OR | RT_EVENT_FLAG_CLEAR, tick, RT_NULL);
112 }
113 else
114 {
115 return -RT_ENOSYS;
116 }
117}

Callers 15

get_pack_from_envFunction · 0.45
read_settingMethod · 0.45
save_settingMethod · 0.45
GenAttachConfigProjectFunction · 0.45
GetAttachConfigFunction · 0.45
PrepareBuildingFunction · 0.45
DefineGroupFunction · 0.45
BuildLibInstallActionFunction · 0.45
EndBuildingFunction · 0.45
GetVersionFunction · 0.45
glob_sourceFunction · 0.45
on_compileFunction · 0.45

Calls 2

rt_tick_from_millisecondFunction · 0.85
rt_event_recvFunction · 0.85

Tested by 5

test_threadFunction · 0.36
test_mutexFunction · 0.36
test_recursive_mutexFunction · 0.36