add semaphore to cga_stream + use it in demos
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
#include "user/lib/mem/UniquePointer.h"
|
||||
|
||||
void SmartPointerDemo::run() {
|
||||
kout.lock();
|
||||
kout.clear();
|
||||
|
||||
kout << "Output is written to log to be able to trace memory allocations/deallocations" << endl;
|
||||
@ -118,5 +119,6 @@ void SmartPointerDemo::run() {
|
||||
}
|
||||
log << INFO << "Should be deleted by now..." << endl;
|
||||
|
||||
kout.unlock();
|
||||
scheduler.exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user