MCPcopy Create free account
hub / github.com/DFHack/dfhack / waitForWrites

Method waitForWrites

plugins/rendermax/renderer_light.cpp:1469–1476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467}
1468
1469void 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
1478lightThreadDispatch::~lightThreadDispatch()
1479{

Callers 1

calculateMethod · 0.80

Calls 2

waitMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected