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

Method BlockTillEmpty

src/OSSupport/Queue.h:117–125  ·  view source on GitHub ↗

Blocks until the queue is empty.

Source from the content-addressed store, hash-verified

115
116 /// Blocks until the queue is empty.
117 void BlockTillEmpty(void)
118 {
119 cCSLock Lock(m_CS);
120 while (!m_Contents.empty())
121 {
122 cCSUnlock Unlock(Lock);
123 m_evtRemoved.Wait();
124 }
125 }
126
127
128 /// Removes all Items from the Queue, calling Delete on each of them.

Callers 2

WaitForLoadQueueEmptyMethod · 0.80
WaitForSaveQueueEmptyMethod · 0.80

Calls 2

emptyMethod · 0.80
WaitMethod · 0.45

Tested by

no test coverage detected