Changeset 2967 in vbox for trunk/src/VBox/Main/include/HostUSBDeviceImpl.h
- Timestamp:
- May 31, 2007 7:37:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/HostUSBDeviceImpl.h ¶
r2939 r2967 91 91 USBDeviceState_T state() const { return mState; } 92 92 93 /** Same as state() except you don't need to lock any thing. */ 94 USBDeviceState_T stateUnlocked() const 95 { 96 AutoReaderLock (this); 97 return state(); 98 } 99 93 100 /* @note Must be called from under the object read lock. */ 94 101 USBDeviceState_T pendingState() const { return mPendingState; } 95 102 103 /** Same as pendingState() except you don't need to lock any thing. */ 104 USBDeviceState_T pendingStateUnlocked() const 105 { 106 AutoReaderLock (this); 107 return pendingState(); 108 } 109 96 110 /* @note Must be called from under the object read lock. */ 97 111 ComObjPtr <SessionMachine, ComWeakRef> &machine() { return mMachine; } … … 105 119 /* @note Must be called from under the object read lock. */ 106 120 bool isStatePending() const { return mIsStatePending; } 121 122 /** Same as isStatePending() except you don't need to lock any thing. */ 123 bool isStatePendingUnlocked() const 124 { 125 AutoReaderLock (this); 126 return isStatePending(); 127 } 107 128 108 129 /* @note Must be called from under the object read lock. */
Note:
See TracChangeset
for help on using the changeset viewer.