Project

General

Profile

Revision 6b036b78

ID6b036b78c349a789c989f9575734ffc2afe16eed

Added by Simon Tenbusch over 9 years ago

- added some debug output
- fixed taskheap: made operators static, otherwise the wrong operators would be used
- fixed t_start assignment in scheduleAt

View differences:

src/sim/cscheduler.cc
184 184
    /*
185 185
     * Fill up independent event heap
186 186
     */
187
    printf("length=%i\n", independentEventsHeap.length());
188 187
    while (!(sim->msgQueue.empty()))
189 188
    {
190 189
        msg = sim->msgQueue.removeFirst();
......
240 239
            msg->setBarrier(barrier);
241 240
            // insert user supplied message in task queue.
242 241
            sim->msgQueue.insert(barrier);
243

  
242
            printf("adding to IEH: %s, tend= %f, now First in IEH: ",((cSimpleModule*)sim->getModule(msg->getArrivalModuleId()))->getName(),SIMTIME_DBL(msg->getTend()));
244 243
            independentEventsHeap.insert(msg);
244
            printf("%s\n", ((cSimpleModule*)sim->getModule(independentEventsHeap.peekFirst()->getArrivalModuleId()))->getName());
245

  
245 246
        }
246 247

  
247 248
    }

Also available in: Unified diff