Revision 68da4f12 src/sim/csimulation.cc

View differences:

src/sim/csimulation.cc
75 75

  
76 76

  
77 77
cSimulation::cSimulation(const char *name, cEnvir *env) :
78
                cNamedObject(name, false), isrunning(false)
78
                cNamedObject(name, false), isrunning(false),
79
                endSimulation(false)
79 80
{
80 81
    ASSERT(cStaticFlag::isSet()); // cannot be instantiated as global variable
81 82

  
......
649 650

  
650 651
    try
651 652
    {
653
        // a worker signaled to shutdown the simulation
654
        if(endSimulation)
655
            throw cTerminationException(eENDSIM);
656

  
652 657
        // update the number of events that occur at the same simtime
653 658
        simtime_t currentTime = cThreadPool::getSimTime();
654 659
        if (currentTime < msg->getArrivalTime())

Also available in: Unified diff