| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 Vector<TimerBase*>& timerHeap() const { ASSERT(m_cachedThreadGlobalTimerHeap
); return *m_cachedThreadGlobalTimerHeap; } | 99 Vector<TimerBase*>& timerHeap() const { ASSERT(m_cachedThreadGlobalTimerHeap
); return *m_cachedThreadGlobalTimerHeap; } |
| 100 | 100 |
| 101 double m_nextFireTime; // 0 if inactive | 101 double m_nextFireTime; // 0 if inactive |
| 102 double m_unalignedNextFireTime; // m_nextFireTime not considering alignment
interval | 102 double m_unalignedNextFireTime; // m_nextFireTime not considering alignment
interval |
| 103 double m_repeatInterval; // 0 if not repeating | 103 double m_repeatInterval; // 0 if not repeating |
| 104 int m_heapIndex; // -1 if not in heap | 104 int m_heapIndex; // -1 if not in heap |
| 105 unsigned m_heapInsertionOrder; // Used to keep order among equal-fire-time t
imers | 105 unsigned m_heapInsertionOrder; // Used to keep order among equal-fire-time t
imers |
| 106 Vector<TimerBase*>* m_cachedThreadGlobalTimerHeap; | 106 Vector<TimerBase*>* m_cachedThreadGlobalTimerHeap; |
| 107 TraceLocation m_location; | 107 TraceLocation m_location; |
| 108 | 108 |
| 109 #ifndef NDEBUG | 109 #if ENABLE(ASSERT) |
| 110 ThreadIdentifier m_thread; | 110 ThreadIdentifier m_thread; |
| 111 #endif | 111 #endif |
| 112 | 112 |
| 113 friend class ThreadTimers; | 113 friend class ThreadTimers; |
| 114 friend class TimerHeapLessThanFunction; | 114 friend class TimerHeapLessThanFunction; |
| 115 friend class TimerHeapReference; | 115 friend class TimerHeapReference; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 template <typename TimerFiredClass> | 118 template <typename TimerFiredClass> |
| 119 class Timer FINAL : public TimerBase { | 119 class Timer FINAL : public TimerBase { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 TimerFiredClass* m_object; | 189 TimerFiredClass* m_object; |
| 190 TimerFiredFunction m_function; | 190 TimerFiredFunction m_function; |
| 191 | 191 |
| 192 double m_delay; | 192 double m_delay; |
| 193 bool m_shouldRestartWhenTimerFires; | 193 bool m_shouldRestartWhenTimerFires; |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 } | 196 } |
| 197 | 197 |
| 198 #endif | 198 #endif |
| OLD | NEW |