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

Method join

components/libc/cplusplus/cpp11/gcc/thread.cpp:56–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 void thread::join()
57 {
58 int err = EINVAL;
59
60 if (joinable())
61 err = pthread_join(native_handle(), NULL);
62
63 if (err)
64 {
65 throw_system_error(err, "thread::join failed");
66 }
67
68 _m_thr = id();
69 }
70
71 void thread::detach()
72 {

Callers

nothing calls this directly

Calls 2

pthread_joinFunction · 0.85
throw_system_errorFunction · 0.85

Tested by

no test coverage detected