MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / detach

Method detach

Libraries/Threading/Threading.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43SC::Result SC::Thread::detach()
44{
45 OpaqueThread* threadNative;
46 SC_TRY(thread.get(threadNative));
47 SC_TRY(Internal::detachThread(*threadNative));
48 thread.clear();
49 return Result(true);
50}
51
52bool SC::Thread::wasStarted() const { return thread.hasValue(); }
53

Callers

nothing calls this directly

Calls 3

ResultClass · 0.50
getMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected