Revision a3d116e3 src/sim/csimulation.cc
src/sim/csimulation.cc | ||
---|---|---|
107 | 107 |
take(&msgQueue); |
108 | 108 |
|
109 | 109 |
// install a default scheduler |
110 |
setScheduler(new cSequentialScheduler());
|
|
110 |
setScheduler(new cEEFScheduler());
|
|
111 | 111 |
} |
112 | 112 |
|
113 | 113 |
cSimulation::~cSimulation() |
... | ... | |
685 | 685 |
barrierMin = threadPool->waitAtBarrier(barrierMin, &msgQueue); |
686 | 686 |
} |
687 | 687 |
#endif |
688 |
|
|
688 |
#ifdef NOBARRIER |
|
689 | 689 |
// Event is free for scheduling => Remove it from the queue. |
690 | 690 |
msg = msgQueue.removeFirst(); |
691 |
|
|
691 |
#else |
|
692 |
msg = ((cEEFScheduler*)schedulerp)->removeNextEvent(); |
|
693 |
#endif |
|
692 | 694 |
#ifdef NOBARRIER |
693 | 695 |
// Update mod pointer: |
694 | 696 |
mod = (cSimpleModule*) simulation.vect[msg->getArrivalModuleId()]; |
Also available in: Unified diff