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

Method shutdown

plugins/rendermax/renderer_light.cpp:1430–1443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1428}
1429
1430void lightThreadDispatch::shutdown()
1431{
1432 for(size_t i=0;i<threadPool.size();i++)
1433 {
1434 threadPool[i]->isDone=true;
1435
1436 }
1437 occlusionDone.notify_all();//if stuck signal that you are done with stuff.
1438 for(size_t i=0;i<threadPool.size();i++)
1439 {
1440 threadPool[i]->myThread->join();
1441 }
1442 threadPool.clear();
1443}
1444
1445int lightThreadDispatch::getW()
1446{

Callers 1

Calls 2

sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected