merged cleanup
This commit is contained in:
@ -8,8 +8,8 @@ void PreemptiveLoopThread::run() {
|
||||
kout.lock();
|
||||
|
||||
// Saving + restoring kout position doesn't help much as preemption still occurs
|
||||
kout.setpos(55, this->id);
|
||||
kout << fillw(3) << this->id << fillw(0) << ": " << dec << cnt++ << endl;
|
||||
CGA_Stream::setpos(55, id);
|
||||
kout << fillw(3) << id << fillw(0) << ": " << dec << cnt++ << endl;
|
||||
|
||||
kout.unlock();
|
||||
}
|
||||
@ -24,7 +24,7 @@ void PreemptiveThreadDemo::run() {
|
||||
kout << "Preemptive Thread Demo:" << endl;
|
||||
|
||||
kout << "Readying LoopThreads" << endl;
|
||||
for (unsigned int i = 0; i < this->number_of_threads; ++i) {
|
||||
for (unsigned int i = 0; i < number_of_threads; ++i) {
|
||||
scheduler.ready<PreemptiveLoopThread>(i);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user