MCPcopy Create free account
hub / github.com/cuberite/cuberite / WaitForQueueEmpty

Method WaitForQueueEmpty

src/LightingThread.cpp:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145
146void cLightingThread::WaitForQueueEmpty(void)
147{
148 cCSLock Lock(m_CS);
149 while (!m_ShouldTerminate && (!m_Queue.empty() || !m_PendingQueue.empty()))
150 {
151 cCSUnlock Unlock(Lock);
152 m_evtQueueEmpty.Wait();
153 }
154}
155
156
157

Callers 1

InitializeSpawnMethod · 0.45

Calls 2

emptyMethod · 0.80
WaitMethod · 0.45

Tested by

no test coverage detected