Project

General

Profile

Revision a3be1d55

IDa3be1d55d349d5c722e7358b42efe4eb720c04fa

Added by Simon Tenbusch about 9 years ago

[eefscheduler] moved barrierwaiting to scheduler
- now the scheduler always returns a non barrier event

View differences:

include/cscheduler.h
89 89
    virtual void executionResumed()  {}
90 90

  
91 91
    /**
92
     * The scheduler function -- it should return the next event
93
     * to be processed. Normally (with sequential execution) it just
94
     * returns msgQueue.peekFirst(). With parallel and/or real-time
95
     * simulation, it is also the scheduler's task to synchronize
96
     * with real time and/or with other partitions.
97
     *
98
     * If there is no more event, it throws cTerminationException.
99
     *
100
     * A NULL return value means that there is no error but execution
101
     * was stopped by the user (e.g. with STOP button on the GUI)
102
     * while getNextEvent() was waiting for external synchronization.
92
     * Returns the next Event to be processed from the FES according to the Scheduling policy.
93
     * The Event is removed from the FES.
94
     * Never returns NULL
95
     * throws cTerminationException(eENDEDOK), when no Event is left to return (the simulation is done)
96
     * This should only be called by doOneEvent() in the Simulation
103 97
     */
104 98
    virtual cMessage *getNextEvent() = 0;
105 99
};

Also available in: Unified diff