MCPcopy Create free account
hub / github.com/HelenOS/helenos / thread_main

Function thread_main

uspace/lib/cpp/include/__bits/thread/thread.hpp:191–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 {
190 template<class CallablePtr>
191 int thread_main(void* clbl)
192 {
193 if (!clbl)
194 return 1;
195
196 auto callable = static_cast<CallablePtr>(clbl);
197 (*callable)();
198
199 if (callable->detached())
200 delete callable;
201
202 return 0;
203 }
204 }
205
206 void swap(thread& x, thread& y) noexcept;

Callers

nothing calls this directly

Calls 1

detachedMethod · 0.80

Tested by

no test coverage detected