equal
deleted
inserted
replaced
64 {} |
64 {} |
65 |
65 |
66 void |
66 void |
67 SchedulerHeap::storeInEvent (EventImpl *ev, uint32_t index) const |
67 SchedulerHeap::storeInEvent (EventImpl *ev, uint32_t index) const |
68 { |
68 { |
69 ev->setInternalIterator ((void *)index); |
69 long tmp = index; |
|
70 ev->setInternalIterator ((void *)tmp); |
70 } |
71 } |
71 uint32_t |
72 uint32_t |
72 SchedulerHeap::getFrom_event (EventImpl *ev) const |
73 SchedulerHeap::getFrom_event (EventImpl *ev) const |
73 { |
74 { |
74 return (uint32_t)ev->getInternalIterator (); |
75 long tmp = (long)ev->getInternalIterator (); |
|
76 return (uint32_t)tmp; |
75 } |
77 } |
76 uint32_t |
78 uint32_t |
77 SchedulerHeap::parent (uint32_t id) const |
79 SchedulerHeap::parent (uint32_t id) const |
78 { |
80 { |
79 return id / 2; |
81 return id / 2; |