Changeset 8680 in vbox for trunk/src/VBox/Main/MachineImpl.cpp
- Timestamp:
- May 7, 2008 6:27:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r8666 r8680 8689 8689 8690 8690 /** 8691 * @note Locksthis object for reading.8691 * @note The calls shall hold no locks. Will temporarily lock this object for reading. 8692 8692 */ 8693 8693 HRESULT SessionMachine::onUSBDeviceAttach (IUSBDevice *aDevice, … … 8714 8714 return E_FAIL; 8715 8715 8716 /* No locks should be held at this point. */ 8717 AssertMsg (RTThreadGetWriteLockCount (RTThreadSelf()) == 0, ("%d\n", RTThreadGetWriteLockCount (RTThreadSelf()))); 8718 AssertMsg (RTThreadGetReadLockCount (RTThreadSelf()) == 0, ("%d\n", RTThreadGetReadLockCount (RTThreadSelf()))); 8719 8716 8720 return directControl->OnUSBDeviceAttach (aDevice, aError, aMaskedIfs); 8717 8721 } 8718 8722 8719 8723 /** 8720 * @note Locksthis object for reading.8724 * @note The calls shall hold no locks. Will temporarily lock this object for reading. 8721 8725 */ 8722 8726 HRESULT SessionMachine::onUSBDeviceDetach (INPTR GUIDPARAM aId, … … 8741 8745 if (!directControl) 8742 8746 return E_FAIL; 8747 8748 /* No locks should be held at this point. */ 8749 AssertMsg (RTThreadGetWriteLockCount (RTThreadSelf()) == 0, ("%d\n", RTThreadGetWriteLockCount (RTThreadSelf()))); 8750 AssertMsg (RTThreadGetReadLockCount (RTThreadSelf()) == 0, ("%d\n", RTThreadGetReadLockCount (RTThreadSelf()))); 8743 8751 8744 8752 return directControl->OnUSBDeviceDetach (aId, aError);
Note:
See TracChangeset
for help on using the changeset viewer.