VirtualBox

Ignore:
Timestamp:
May 31, 2007 7:37:43 PM (18 years ago)
Author:
vboxsync
Message:

async capture/hold/release of usb devices. (untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/HostUSBDeviceImpl.h

    r2939 r2967  
    9191    USBDeviceState_T state() const { return mState; }
    9292
     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
    93100    /* @note Must be called from under the object read lock. */
    94101    USBDeviceState_T pendingState() const { return mPendingState; }
    95102
     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
    96110    /* @note Must be called from under the object read lock. */
    97111    ComObjPtr <SessionMachine, ComWeakRef> &machine() { return mMachine; }
     
    105119    /* @note Must be called from under the object read lock. */
    106120    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    }
    107128
    108129    /* @note Must be called from under the object read lock. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette