void noteProducerFinished(IRowStream * stream) { waitForStop(); if (stream) stream->stop(); notifyStopped(); }
void DcpuThread::run() { try { while (!stopExecution && !cpu.isOnFire()) { sleepUntilNextCycle(); if (cyclesSlept >= cpu.getCycles()) { cpu.tick(); } cpu.hardwareManager.tickAll(); } } catch (exception &e) { cerr << "Error: " << e.what() << endl; } notifyStopped(); }