Changeset 49814 in vbox for trunk/src/VBox/Main
- Timestamp:
- Dec 6, 2013 9:38:28 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 91156
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/RemoteUSBBackend.cpp
r48955 r49814 116 116 bool fFailed; /* True if an operation has failed for the device. */ 117 117 RTCRITSECT critsect; /* Protects the queued urb list. */ 118 volatile bool fWokenUp; /* Flag whther the reaper was woken up. */ 118 119 } REMOTEUSBDEVICE; 119 120 … … 277 278 /* Initialize the device structure. */ 278 279 pDevice->pOwner = pThis; 280 pDevice->fWokenUp = false; 279 281 280 282 rc = RTCritSectInit(&pDevice->critsect); … … 691 693 uint32_t u32ClientId; 692 694 695 if (ASMAtomicXchgBool(&pDevice->fWokenUp, false)) 696 break; 697 693 698 /* Scan queued URBs, look for completed. */ 694 699 requestDevice (pDevice); … … 782 787 783 788 return rc; 789 } 790 791 static DECLCALLBACK(int) iface_Wakeup (PREMOTEUSBDEVICE pDevice) 792 { 793 ASMAtomicXchgBool(&pDevice->fWokenUp, true); 794 return VINF_SUCCESS; 784 795 } 785 796 … … 977 988 mCallback.pfnClearHaltedEP = iface_ClearHaltedEP; 978 989 mCallback.pfnCancelURB = iface_CancelURB; 990 mCallback.pfnWakeup = iface_Wakeup; 979 991 } 980 992
Note:
See TracChangeset
for help on using the changeset viewer.