output/MultipleOutputs: reduce lock/unlock calls in EnableDisable()
Use ScopeLock to manage the lock; don't unlock after obtaining the "really_enabled" flag; keep the same lock during EnableWait() / DisableWait().
This commit is contained in:
@@ -323,13 +323,17 @@ public:
|
||||
|
||||
/**
|
||||
* Enables the device.
|
||||
*
|
||||
* Caller must lock the mutex.
|
||||
*/
|
||||
void LockEnableWait();
|
||||
void EnableWait();
|
||||
|
||||
/**
|
||||
* Disables the device.
|
||||
*
|
||||
* Caller must lock the mutex.
|
||||
*/
|
||||
void LockDisableWait();
|
||||
void DisableWait();
|
||||
|
||||
void LockPauseAsync();
|
||||
|
||||
|
Reference in New Issue
Block a user