Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
fa7de8c4
Commit
fa7de8c4
authored
Sep 05, 2018
by
youjiali1995
Committed by
antirez
Sep 14, 2018
Browse files
bio: fix bioWaitStepOfType.
parent
7642f9d5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bio.c
View file @
fa7de8c4
...
...
@@ -204,14 +204,14 @@ void *bioProcessBackgroundJobs(void *arg) {
}
zfree
(
job
);
/* Unblock threads blocked on bioWaitStepOfType() if any. */
pthread_cond_broadcast
(
&
bio_step_cond
[
type
]);
/* Lock again before reiterating the loop, if there are no longer
* jobs to process we'll block again in pthread_cond_wait(). */
pthread_mutex_lock
(
&
bio_mutex
[
type
]);
listDelNode
(
bio_jobs
[
type
],
ln
);
bio_pending
[
type
]
--
;
/* Unblock threads blocked on bioWaitStepOfType() if any. */
pthread_cond_broadcast
(
&
bio_step_cond
[
type
]);
}
}
...
...
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