equal
deleted
inserted
replaced
47 |
47 |
48 static bool deferringTimers; |
48 static bool deferringTimers; |
49 static Vector<TimerBase*>* timerHeap; |
49 static Vector<TimerBase*>* timerHeap; |
50 static HashSet<const TimerBase*>* timersReadyToFire; |
50 static HashSet<const TimerBase*>* timersReadyToFire; |
51 |
51 |
|
52 struct timerCleaner { |
|
53 ~timerCleaner() { |
|
54 if( timerHeap ) { |
|
55 delete timerHeap; |
|
56 timerHeap = 0; |
|
57 } |
|
58 } |
|
59 }; |
|
60 struct timerCleaner cleanTimer; |
|
61 |
52 // ---------------- |
62 // ---------------- |
53 |
63 |
54 // Class to represent elements in the heap when calling the standard library heap algorithms. |
64 // Class to represent elements in the heap when calling the standard library heap algorithms. |
55 // Maintains the m_heapIndex value in the timers themselves, which allows us to do efficient |
65 // Maintains the m_heapIndex value in the timers themselves, which allows us to do efficient |
56 // modification of the heap. |
66 // modification of the heap. |