| 1366 | |
| 1367 | |
| 1368 | void EngineWorker::run() { |
| 1369 | // Configure thread |
| 1370 | contextSet(engine->internal->context); |
| 1371 | system::setThreadName(string::f("Worker %d", id)); |
| 1372 | system::resetFpuFlags(); |
| 1373 | |
| 1374 | while (true) { |
| 1375 | engine->internal->engineBarrier.wait(); |
| 1376 | if (!running) |
| 1377 | return; |
| 1378 | Engine_stepWorker(engine, id); |
| 1379 | engine->internal->workerBarrier.wait(); |
| 1380 | } |
| 1381 | } |
| 1382 | |
| 1383 | |
| 1384 | static void Engine_fallbackRun(Engine* that) { |
no test coverage detected