void noteProducerFinished(IRowStream * stream)
 {
     waitForStop();
     if (stream)
         stream->stop();
     notifyStopped();
 }
Beispiel #2
0
	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();
	}