Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b7c739b0
Commit
b7c739b0
authored
Sep 13, 2011
by
antirez
Browse files
use pthread_cond_signal() to make sure the background thread will process the job.
parent
8ea2dfd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bio.c
View file @
b7c739b0
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment