mirror of
https://github.com/facebook/zstd.git
synced 2024-11-24 03:27:31 +08:00
change signal to broadcast for jobCompressed condition varaible since multiple threads waiting
This commit is contained in:
parent
9ea7df03de
commit
0295737ad7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user