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:
src/decoder
@@ -145,8 +145,7 @@ DecoderBridge::FlushChunk() noexcept
|
||||
dc.pipe->Push(std::move(chunk));
|
||||
|
||||
const std::lock_guard<Mutex> protect(dc.mutex);
|
||||
if (dc.client_is_waiting)
|
||||
dc.client_cond.notify_one();
|
||||
dc.client_cond.notify_one();
|
||||
}
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user