1

add semaphore to cga_stream + use it in demos

This commit is contained in:
2022-07-22 18:12:56 +02:00
parent e3dcadcc3c
commit e56e76ea4e
14 changed files with 39 additions and 13 deletions

View File

@ -16,14 +16,16 @@ void KeyboardDemo::run() {
kout << "Keyboard Demo: " << endl;
// kout.lock();
kout.lock();
kout.clear();
kout << "Info: Die Keyboard Demo sperrt den Output Stream:\n"
<< " Wenn die Preemption Demo laeuft wird diese also erst\n"
<< " fortfahren wenn die Keyboard Demo wieder beendet ist." << endl;
kout << "\nInput: ";
kout.flush();
while (true) {
kout << listener.waitForKeyEvent();
kout.flush();
}
// kout.unlock();
scheduler.exit();
}