Changeset 20072 in vbox
- Timestamp:
- May 27, 2009 12:10:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/EM.cpp
r20071 r20072 872 872 VMMR3DECL(void) EMR3RemLock(PVM pVM) 873 873 { 874 #ifdef IN_RING3 875 if (!PDMCritSectIsInitialized(&pVM->em.s.CritSectREM)) 876 return; /* early init */ 877 #else 878 Assert(PDMCritSectIsInitialized(&pVM->em.s.CritSectREM)); 879 #endif 874 880 int rc = PDMCritSectEnter(&pVM->em.s.CritSectREM, VERR_SEM_BUSY); 875 881 AssertMsg(rc == VINF_SUCCESS, ("%Rrc\n", rc)); … … 883 889 VMMR3DECL(void) EMR3RemUnlock(PVM pVM) 884 890 { 891 #ifdef IN_RING3 892 if (!PDMCritSectIsInitialized(&pVM->em.s.CritSectREM)) 893 return; /* early init */ 894 #else 895 Assert(PDMCritSectIsInitialized(&pVM->em.s.CritSectREM)); 896 #endif 885 897 PDMCritSectLeave(&pVM->em.s.CritSectREM); 886 898 }
Note:
See TracChangeset
for help on using the changeset viewer.