Changeset 11409 in vbox
- Timestamp:
- Aug 13, 2008 7:35:50 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VMMDevInterface.cpp
r11296 r11409 94 94 rc = HGCMHostInit (); 95 95 AssertRC(rc); 96 m_fHGCMActive = true; 96 97 #endif /* VBOX_HGCM */ 97 98 mu32CredentialsFlags = 0; … … 575 576 int VMMDev::hgcmLoadService (const char *pszServiceLibrary, const char *pszServiceName) 576 577 { 578 if (ASMAtomicReadBool(&m_fHGCMActive) == false) 579 { 580 return VERR_INVALID_STATE; 581 } 577 582 return HGCMHostLoad (pszServiceLibrary, pszServiceName); 578 583 } … … 581 586 uint32_t cParms, PVBOXHGCMSVCPARM paParms) 582 587 { 588 if (ASMAtomicReadBool(&m_fHGCMActive) == false) 589 { 590 return VERR_INVALID_STATE; 591 } 583 592 return HGCMHostCall (pszServiceName, u32Function, cParms, paParms); 584 593 } … … 586 595 void VMMDev::hgcmShutdown (void) 587 596 { 597 ASMAtomicWriteBool(&m_fHGCMActive, false); 588 598 HGCMHostShutdown (); 589 599 } -
trunk/src/VBox/Main/include/VMMDev.h
r8155 r11409 67 67 RTSEMEVENT mCredentialsEvent; 68 68 uint32_t mu32CredentialsFlags; 69 70 #ifdef VBOX_HGCM 71 bool m_fHGCMActive; 72 #endif /* VBOX_HGCM */ 69 73 }; 70 74
Note:
See TracChangeset
for help on using the changeset viewer.