MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / finalise

Method finalise

src/hx/thread/ThreadImpl.cpp:177–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void hx::thread::ThreadImpl_obj::finalise(hx::Object* obj)
178{
179 auto thread = reinterpret_cast<ThreadImpl_obj*>(obj);
180 auto native = std::unique_ptr<ThreadImpl_obj::Native>{ thread->native };
181
182 if (native->thread.joinable())
183 {
184 native->thread.detach();
185 }
186}
187
188#endif

Callers

nothing calls this directly

Calls 1

detachMethod · 0.45

Tested by

no test coverage detected