Changeset 9579 in vbox
- Timestamp:
- Jun 10, 2008 4:42:00 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/include/iprt/cpuset.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cpuset.h
r9368 r9579 77 77 78 78 /** 79 * Adds a CPU given by it 's identifier to the set.79 * Adds a CPU given by its identifier to the set. 80 80 * 81 81 * @returns 0 on success, -1 if idCpu isn't valid. … … 95 95 96 96 /** 97 * Removes a CPU given by it 's identifier from the set.97 * Removes a CPU given by its identifier from the set. 98 98 * 99 99 * @returns 0 on success, -1 if idCpu isn't valid. … … 113 113 114 114 /** 115 * Checks if a CPU given by it 's identifier is a member of the set.115 * Checks if a CPU given by its identifier is a member of the set. 116 116 * 117 117 * @returns true / false accordingly. … … 124 124 int iCpu = RTMpCpuIdToSetIndex(idCpu); 125 125 if (RT_UNLIKELY(iCpu < 0)) 126 return false; 127 return ASMBitTest((volatile void *)pSet, iCpu); 128 } 129 130 131 /** 132 * Checks if a CPU given by its index is a member of the set. 133 * 134 * @returns true / false accordingly. 135 * @param pSet Pointer to the set. 136 * @param iCpu The index of the CPU in the set. 137 * @remarks The test is atomic. 138 */ 139 DECLINLINE(bool) RTCpuSetIsMemberByIndex(PCRTCPUSET pSet, RTCPUID iCpu) 140 { 141 if (RT_UNLIKELY(iCpu >= RTCPUSET_MAX_CPUS)) 126 142 return false; 127 143 return ASMBitTest((volatile void *)pSet, iCpu);
Note:
See TracChangeset
for help on using the changeset viewer.

