Blocks until the queue is empty.
| 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. |
no test coverage detected