Commit 72d85778 authored by Stefan Reif's avatar Stefan Reif

Use pthread_cond_broadcast

.. do not use _signal, it has some issues.
parent 2624dda2
Pipeline #896 failed with stages
in 2 minutes and 47 seconds
......@@ -37,7 +37,7 @@ static void decode_block(PrrtSocket *socket, PrrtBlock *block)
if(PrrtForwardPacketTable_test_set_is_number_relevant(socket->forwardPacketTable, pkt->sequenceNumber)) {
check(pthread_mutex_lock(&socket->inQueueFilledMutex) == 0, "Lock failed.");
List_push(socket->inQueue, pkt);
check(pthread_cond_signal(&socket->inQueueFilledCv) == 0, "Signal failed.");
check(pthread_cond_broadcast(&socket->inQueueFilledCv) == 0, "Signal failed.");
check(pthread_mutex_unlock(&socket->inQueueFilledMutex) == 0, "Unlock failed.");
} else {
PrrtPacket_destroy(pkt);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment