1
This commit is contained in:
2022-07-17 16:03:35 +02:00
parent 9ecc520d94
commit a2b2a311d8
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#include "user/demo/ArrayListDemo.h"
void ArrayListDemo::run() {
kout.lock();
kout.clear();
kout << "Initial list size: " << dec << this->list.size() << endl;
kout << "Adding elements in order" << endl;
@ -83,5 +85,6 @@ void ArrayListDemo::run() {
this->list.print(kout);
kout.unlock();
scheduler.exit();
}

View File

@ -12,6 +12,7 @@ void KeyEventManager::unsubscribe(KeyEventListener& listener) {
}
void KeyEventManager::broadcast(char c) {
log << TRACE << "Beginning Broadcast" << endl;
for (KeyEventListener* listener : this->listeners) {
log << TRACE << "Broadcasting " << c << " to Thread ID: " << dec << listener->thread.tid << endl;
listener->trigger(c);