MCPcopy Create free account
hub / github.com/VCVRack/Rack / run

Method run

src/engine/Engine.cpp:1368–1381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1366
1367
1368void 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
1384static void Engine_fallbackRun(Engine* that) {

Callers 1

startMethod · 0.45

Calls 6

contextSetFunction · 0.85
setThreadNameFunction · 0.85
resetFpuFlagsFunction · 0.85
Engine_stepWorkerFunction · 0.85
fFunction · 0.50
waitMethod · 0.45

Tested by

no test coverage detected