MCPcopy Create free account
hub / github.com/defold/defold / DeleteQueue

Function DeleteQueue

engine/resource/src/async/load_queue_threaded.cpp:147–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 void DeleteQueue(HQueue queue)
148 {
149 {
150 dmMutex::ScopedLock lk(queue->m_Mutex);
151 queue->m_Shutdown = true;
152 // Wake up the worker so it can exit and allow us to join
153 dmConditionVariable::Signal(queue->m_WakeupCond);
154 }
155 dmThread::Join(queue->m_Thread);
156 dmConditionVariable::Delete(queue->m_WakeupCond);
157 dmMutex::Delete(queue->m_Mutex);
158 delete queue;
159 }
160
161 HRequest BeginLoad(HQueue queue, const char* name, const char* canonical_path, PreloadInfo* info)
162 {

Callers

nothing calls this directly

Calls 3

SignalFunction · 0.50
JoinFunction · 0.50
DeleteFunction · 0.50

Tested by

no test coverage detected