- 時間撮記:
- 2008-6-10 上午11:01:33 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r0drv/nt/mp-r0drv-nt.cpp
r9436 r9563 40 40 #include <iprt/asm.h> 41 41 #include "r0drv/mp-r0drv.h" 42 #include "internal-r0drv-nt.h" 42 43 43 44 … … 95 96 return false; 96 97 97 /** @todo this must be done at init time as it's not safe under all circumstances (braindead OS design).*/98 #if 0 /* this isn't safe at all IRQLs (great work guys) */ 98 99 KAFFINITY Mask = KeQueryActiveProcessors(); 99 100 return !!(Mask & RT_BIT_64(idCpu)); 101 #else 102 return RTCpuSetIsMember(&g_rtMpNtCpuSet, idCpu); 103 #endif 100 104 } 101 105 … … 125 129 RTDECL(PRTCPUSET) RTMpGetOnlineSet(PRTCPUSET pSet) 126 130 { 131 #if 0 /* this isn't safe at all IRQLs (great work guys) */ 127 132 KAFFINITY Mask = KeQueryActiveProcessors(); 128 133 return RTCpuSetFromU64(pSet, Mask); 134 #else 135 *pSet = g_rtMpNtCpuSet; 136 return pSet; 137 #endif 129 138 } 130 139 … … 255 264 } 256 265 266 257 267 RTDECL(int) RTMpOnAll(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2) 258 268 { … … 260 270 } 261 271 272 262 273 RTDECL(int) RTMpOnOthers(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2) 263 274 { 264 275 return rtMpCall(pfnWorker, pvUser1, pvUser2, RT_NT_CPUID_OTHERS, 0); 265 276 } 277 266 278 267 279 RTDECL(int) RTMpOnSpecific(RTCPUID idCpu, PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器