change signal to broadcast for jobCompressed condition varaible since multiple threads waiting

This commit is contained in:
Paul Cruz 2017-07-31 13:43:03 -07:00
parent 9ea7df03de
commit 0295737ad7

View File

@ -333,7 +333,7 @@ static void signalErrorToThreads(adaptCCtx* ctx)
pthread_mutex_unlock(&ctx->jobReady_mutex.pMutex);
pthread_mutex_lock(&ctx->jobCompressed_mutex.pMutex);
pthread_cond_signal(&ctx->jobCompressed_cond.pCond);
pthread_cond_broadcast(&ctx->jobCompressed_cond.pCond);
pthread_mutex_unlock(&ctx->jobReady_mutex.pMutex);
pthread_mutex_lock(&ctx->jobWrite_mutex.pMutex);