MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / RunWork

Method RunWork

core/logic/ThreadSupport.cpp:250–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void CompatWorker::RunWork(SWThreadHandle* handle)
251{
252 bool autorelease = !!(handle->m_params.flags & Thread_AutoRelease);
253 handle->m_state = Thread_Running;
254 handle->GetThread()->RunThread(handle);
255 handle->m_state = Thread_Done;
256 handle->GetThread()->OnTerminate(handle, false);
257 if (autorelease)
258 delete handle;
259}
260
261void CompatWorker::MakeThread(IThread *pThread)
262{

Callers

nothing calls this directly

Calls 3

RunThreadMethod · 0.80
GetThreadMethod · 0.80
OnTerminateMethod · 0.80

Tested by

no test coverage detected