Skip to content
Snippets Groups Projects
Commit 49b6d959 authored by Rob Davies's avatar Rob Davies
Browse files

Only signal input queue not full if it really is not full

parent 979e6f21
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,7 @@ static hts_tpool_result *hts_tpool_next_result_locked(hts_tpool_process *q) {
// Not technically input full, but can guarantee there is
// room for the input to go somewhere so we still signal.
// The waiting code will then check the condition again.
if (q->n_input < q->qsize)
pthread_cond_signal(&q->input_not_full_c);
if (!q->shutdown)
wake_next_worker(q, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment