Changeset 9444 in vbox for trunk/include/iprt/timer.h
- Timestamp:
- Jun 5, 2008 6:08:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/timer.h
r9417 r9444 78 78 * @param pTimer Timer handle. 79 79 * @param pvUser User argument. 80 */ 81 typedef DECLCALLBACK(void) FNRTTIMER(PRTTIMER pTimer, void *pvUser); 80 * @param iTick The current timer tick. This is always 1 on the first 81 * callback after the timer was started. For omni timers 82 * this will be 1 when a cpu comes back online. 83 */ 84 typedef DECLCALLBACK(void) FNRTTIMER(PRTTIMER pTimer, void *pvUser, uint64_t iTick); 82 85 /** Pointer to FNRTTIMER() function. */ 83 86 typedef FNRTTIMER *PFNRTTIMER; … … 122 125 /** One specific CPU */ 123 126 #define RTTIMER_FLAGS_CPU_SPECIFIC RT_BIT(8) 124 /** All online CPUs. */ 127 /** Omni timer, run on all online CPUs. 128 * @remarks The timer callback isn't necessarily running at the time same time on each CPU. */ 125 129 #define RTTIMER_FLAGS_CPU_ALL ( RTTIMER_FLAGS_CPU_MASK | RTTIMER_FLAGS_CPU_SPECIFIC ) 126 130 /** CPU mask. */ … … 130 134 #define RTTIMER_FLAGS_CPU(iCpu) ( (iCpu) | RTTIMER_FLAG_CPU_SPECIFIC ) 131 135 /** Macro that validates the flags. */ 132 #define RTTIMER_FLAGS_ IS_VALID(fFlags) ( !((fFlags) & ((fFlags) & RTTIMER_FLAGS_CPU_SPECIFIC ? 0x1ff : 0x100)) )136 #define RTTIMER_FLAGS_ARE_VALID(fFlags) ( !((fFlags) & ((fFlags) & RTTIMER_FLAGS_CPU_SPECIFIC ? 0x1ff : 0x100)) ) 133 137 /** @} */ 134 138
Note:
See TracChangeset
for help on using the changeset viewer.