Revision aeae20a1 src/sim/cscheduler.cc

View differences:

src/sim/cscheduler.cc
46 46
{
47 47
    sim = _sim;
48 48
}
49
cMessage* cScheduler::removeNextEvent()
50
{
51
    return sim->msgQueue.removeFirst();
52
}
53 49
//-----
54 50

  
55 51
Register_Class(cSequentialScheduler);
......
60 56
    //
61 57
    // If we retrieve a valid msg from the queue, we return it:
62 58
    //
63
    cMessage *msg = sim->msgQueue.peekFirst();
59
    cMessage *msg = sim->msgQueue.removeFirst();
64 60
    if (msg)
65 61
        return msg;
66 62

  
......
78 74
    {
79 75
        __asm__ ("pause");
80 76
    }
81
    msg = sim->msgQueue.peekFirst();
77
    msg = sim->msgQueue.removeFirst();
82 78

  
83 79
    //
84 80
    // If there is a msg now, we return it:
......
259 255
}
260 256

  
261 257

  
258

  
259

  
262 260
//-----
263 261
Register_Class(cRealTimeScheduler);
264 262

  

Also available in: Unified diff