| 1428 | } |
| 1429 | |
| 1430 | void 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 | |
| 1445 | int lightThreadDispatch::getW() |
| 1446 | { |
no test coverage detected