| 1457 | ((lightThread*)arg)->run(); |
| 1458 | } |
| 1459 | void lightThreadDispatch::start(int count) |
| 1460 | { |
| 1461 | for(int i=0;i<count;i++) |
| 1462 | { |
| 1463 | std::unique_ptr<lightThread> nthread(new lightThread(*this)); |
| 1464 | nthread->myThread=new std::thread(&threadStub,nthread.get()); |
| 1465 | threadPool.push_back(std::move(nthread)); |
| 1466 | } |
| 1467 | } |
| 1468 | |
| 1469 | void lightThreadDispatch::waitForWrites() |
| 1470 | { |
no test coverage detected