| 1467 | } |
| 1468 | |
| 1469 | void lightThreadDispatch::waitForWrites() |
| 1470 | { |
| 1471 | std::unique_lock<std::mutex> lock(writeLock); |
| 1472 | while(threadPool.size()>size_t(writeCount))//missed it somehow already. |
| 1473 | { |
| 1474 | writesDone.wait(lock); //if not, wait a bit |
| 1475 | } |
| 1476 | } |
| 1477 | |
| 1478 | lightThreadDispatch::~lightThreadDispatch() |
| 1479 | { |