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

Method Flush

core/logic/ThreadSupport.cpp:152–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void CompatWorker::Flush()
153{
154 while (!work_.empty()) {
155 auto handle = ke::PopFront(&work_);
156 handle->GetThread()->OnTerminate(handle, true);
157 if (handle->m_params.flags & Thread_AutoRelease)
158 delete handle;
159 }
160}
161
162void CompatWorker::Worker()
163{

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.80
OnTerminateMethod · 0.80
GetThreadMethod · 0.80

Tested by

no test coverage detected