VirtualBox

Changeset 9444 in vbox for trunk/include/iprt/timer.h


Ignore:
Timestamp:
Jun 5, 2008 6:08:17 PM (16 years ago)
Author:
vboxsync
Message:

Added iTick to FNTIMER (the timer callback).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/timer.h

    r9417 r9444  
    7878 * @param   pTimer      Timer handle.
    7979 * @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 */
     84typedef DECLCALLBACK(void) FNRTTIMER(PRTTIMER pTimer, void *pvUser, uint64_t iTick);
    8285/** Pointer to FNRTTIMER() function. */
    8386typedef FNRTTIMER *PFNRTTIMER;
     
    122125/** One specific CPU */
    123126#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. */
    125129#define RTTIMER_FLAGS_CPU_ALL        ( RTTIMER_FLAGS_CPU_MASK | RTTIMER_FLAGS_CPU_SPECIFIC )
    126130/** CPU mask. */
     
    130134#define RTTIMER_FLAGS_CPU(iCpu)      ( (iCpu) | RTTIMER_FLAG_CPU_SPECIFIC )
    131135/** 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)) )
    133137/** @} */
    134138
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette