VirtualBox

Changeset 9368 in vbox


Ignore:
Timestamp:
Jun 3, 2008 10:30:13 PM (16 years ago)
Author:
vboxsync
Message:

RTCpuSetIsEqual

Location:
trunk
Files:
2 edited

Legend:

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

    r9309 r9368  
    130130
    131131/**
     132 * Checks if the two sets match or not.
     133 *
     134 * @returns true / false accordingly.
     135 * @param   pSet1       The first set.
     136 * @param   pSet2       The second set.
     137 */
     138DECLINLINE(bool) RTCpuSetIsEqual(PCRTCPUSET pSet1, PCRTCPUSET pSet2)
     139{
     140    return *pSet1 == *pSet2;
     141}
     142
     143
     144/**
    132145 * Converts the CPU set to a 64-bit mask.
    133146 *
  • trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c

    r9366 r9368  
    661661
    662662
    663 DECLINLINE(bool) RTCpuSetEqual(PCRTCPUSET pSet1, PCRTCPUSET pSet2)
    664 {
    665     return *pSet1 == *pSet2;
    666 }
    667 
    668 
    669663/**
    670664 * Worker for RTTimerStart() that takes care of the ugly bit.s
     
    701695                               : RTTIMERLNXSTATE_STOPPED);
    702696        }
    703     } while (!RTCpuSetEqual(&OnlineSet, RTMpGetOnlineSet(&OnlineSet2)));
     697    } while (!RTCpuSetIsEqual(&OnlineSet, RTMpGetOnlineSet(&OnlineSet2)));
    704698
    705699    ASMAtomicWriteBool(&pTimer->fSuspended, false);
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