Changeset 92229 in vbox for trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp
- Timestamp:
- Nov 5, 2021 12:52:57 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp
r92201 r92229 1072 1072 pGVM->gvmm.s.fDoneVMMR0Init = false; 1073 1073 pGVM->gvmm.s.fDoneVMMR0Term = false; 1074 1075 for (size_t i = 0; i < RT_ELEMENTS(pGVM->gvmm.s.aWorkerThreads); i++) 1076 { 1077 pGVM->gvmm.s.aWorkerThreads[i].hNativeThread = NIL_RTNATIVETHREAD; 1078 pGVM->gvmm.s.aWorkerThreads[i].hNativeThreadR3 = NIL_RTNATIVETHREAD; 1079 } 1080 pGVM->gvmm.s.aWorkerThreads[0].hNativeThread = GVMM_RTNATIVETHREAD_DESTROYED; /* invalid entry */ 1081 1074 1082 for (size_t i = 0; i < RT_ELEMENTS(pGVM->gvmm.s.aEmtHash); i++) 1075 1083 { … … 1633 1641 AssertBreakStmt(pGVM->aCpus[iCpu].hEMT != hNativeSelf, rc = VERR_INVALID_PARAMETER); 1634 1642 for (size_t idx = 0; idx < RT_ELEMENTS(pGVM->gvmm.s.aWorkerThreads); idx++) 1635 AssertBreakStmt(idx != (size_t)enmWorker &&pGVM->gvmm.s.aWorkerThreads[enmWorker].hNativeThread != hNativeSelf,1643 AssertBreakStmt(idx == (size_t)enmWorker || pGVM->gvmm.s.aWorkerThreads[enmWorker].hNativeThread != hNativeSelf, 1636 1644 rc = VERR_INVALID_PARAMETER); 1637 1645 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.