Changeset 41528 in vbox for trunk/src/VBox/Main/src-server/solaris
- Timestamp:
- May 31, 2012 4:48:33 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78291
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/solaris/USBProxyServiceSolaris.cpp
r38016 r41528 5 5 6 6 /* 7 * Copyright (C) 200 6-2007Oracle Corporation7 * Copyright (C) 2005-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 54 54 * Initialize data members. 55 55 */ 56 USBProxyServiceSolaris::USBProxyServiceSolaris 57 : USBProxyService 56 USBProxyServiceSolaris::USBProxyServiceSolaris(Host *aHost) 57 : USBProxyService(aHost), mUSBLibInitialized(false) 58 58 { 59 59 LogFlowThisFunc(("aHost=%p\n", aHost)); … … 337 337 */ 338 338 AssertReturn(aDevice, VERR_GENERAL_FAILURE); 339 AssertReturn(!aDevice->isWriteLockOnCurrentThread(), VERR_GENERAL_FAILURE); 340 341 AutoReadLock devLock(aDevice COMMA_LOCKVAL_SRC_POS); 339 342 LogFlowThisFunc(("aDevice=%s\n", aDevice->getName().c_str())); 340 AssertReturn(aDevice->isWriteLockOnCurrentThread(), VERR_GENERAL_FAILURE); 343 341 344 Assert(aDevice->getUnistate() == kHostUSBDeviceState_Capturing); 342 345 AssertReturn(aDevice->mUsb, VERR_INVALID_POINTER); … … 372 375 void USBProxyServiceSolaris::captureDeviceCompleted(HostUSBDevice *aDevice, bool aSuccess) 373 376 { 377 AssertReturnVoid(aDevice->isWriteLockOnCurrentThread()); 374 378 /* 375 379 * Remove the one-shot filter if necessary. … … 388 392 */ 389 393 AssertReturn(aDevice, VERR_GENERAL_FAILURE); 394 AssertReturn(!aDevice->isWriteLockOnCurrentThread(), VERR_GENERAL_FAILURE); 395 396 AutoReadLock devLock(aDevice COMMA_LOCKVAL_SRC_POS); 390 397 LogFlowThisFunc(("aDevice=%s\n", aDevice->getName().c_str())); 391 AssertReturn(aDevice->isWriteLockOnCurrentThread(), VERR_GENERAL_FAILURE); 398 392 399 Assert(aDevice->getUnistate() == kHostUSBDeviceState_ReleasingToHost); 393 400 AssertReturn(aDevice->mUsb, VERR_INVALID_POINTER); … … 423 430 void USBProxyServiceSolaris::releaseDeviceCompleted(HostUSBDevice *aDevice, bool aSuccess) 424 431 { 432 AssertReturnVoid(aDevice->isWriteLockOnCurrentThread()); 425 433 /* 426 434 * Remove the one-shot filter if necessary. … … 435 443 bool USBProxyServiceSolaris::updateDeviceState(HostUSBDevice *aDevice, PUSBDEVICE aUSBDevice, bool *aRunFilters, SessionMachine **aIgnoreMachine) 436 444 { 445 AssertReturn(aDevice, false); 446 AssertReturn(!aDevice->isWriteLockOnCurrentThread(), false) 437 447 return USBProxyService::updateDeviceState(aDevice, aUSBDevice, aRunFilters, aIgnoreMachine); 438 448 }
Note:
See TracChangeset
for help on using the changeset viewer.