decoder/Control: remove attribute client_is_waiting
This optimization is useless because sane pthread_cond_signal() implementations check the number of waiters and do not invoke a system call if there are none.
This commit is contained in:
@@ -43,13 +43,7 @@ DecoderControl::~DecoderControl() noexcept
|
||||
void
|
||||
DecoderControl::WaitForDecoder(std::unique_lock<Mutex> &lock) noexcept
|
||||
{
|
||||
assert(!client_is_waiting);
|
||||
client_is_waiting = true;
|
||||
|
||||
client_cond.wait(lock);
|
||||
|
||||
assert(client_is_waiting);
|
||||
client_is_waiting = false;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user