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