add semaphore to cga_stream + use it in demos
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
#include "user/demo/HeapDemo.h"
|
||||
|
||||
void HeapDemo::run() {
|
||||
kout.lock();
|
||||
kout.clear();
|
||||
kout << "HEAP_DEMO ===================================================================" << endl;
|
||||
|
||||
@ -72,5 +73,6 @@ void HeapDemo::run() {
|
||||
|
||||
kout << "HEAP_DEMO END ===============================================================" << endl;
|
||||
|
||||
kout.unlock();
|
||||
scheduler.exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user