logging
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user