mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
use pthread_cond_signal() to make sure the background thread will process the job.
This commit is contained in:
parent
8ea2dfd75c
commit
b7c739b0dd
@ -72,6 +72,7 @@ void bioCreateBackgroundJob(int type, void *data) {
|
||||
job->data = data;
|
||||
pthread_mutex_lock(&bio_mutex);
|
||||
listAddNodeTail(bio_jobs,job);
|
||||
pthread_cond_signal(&bio_condvar);
|
||||
pthread_mutex_unlock(&bio_mutex);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user