Changeset 31352 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Aug 4, 2010 9:45:01 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/VMMAll.cpp
r30329 r31352 60 60 return 0; 61 61 62 /* RT MpCpuIdhad better be cheap. */63 RT CPUID idHostCpu = RTMpCpuId();62 /* RTThreadGetNativeSelf had better be cheap. */ 63 RTNATIVETHREAD hThread = RTThreadNativeSelf(); 64 64 65 65 /** @todo optimize for large number of VCPUs when that becomes more common. */ … … 68 68 PVMCPU pVCpu = &pVM->aCpus[idCpu]; 69 69 70 if (pVCpu-> idHostCpu == idHostCpu)70 if (pVCpu->hNativeThread == hThread) 71 71 return pVCpu->idCpu; 72 72 } … … 99 99 return &pVM->aCpus[0]; 100 100 101 /* RT MpCpuIdhad better be cheap. */102 RT CPUID idHostCpu = RTMpCpuId();101 /* RTThreadGetNativeSelf had better be cheap. */ 102 RTNATIVETHREAD hThread = RTThreadNativeSelf(); 103 103 104 104 /** @todo optimize for large number of VCPUs when that becomes more common. */ … … 107 107 PVMCPU pVCpu = &pVM->aCpus[idCpu]; 108 108 109 if (pVCpu-> idHostCpu == idHostCpu)109 if (pVCpu->hNativeThread == hThread) 110 110 return pVCpu; 111 111 }
Note:
See TracChangeset
for help on using the changeset viewer.