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
c3288348
Commit
c3288348
authored
Sep 05, 2018
by
youjiali1995
Browse files
bio: fix bioWaitStepOfType.
parent
4e5e0d37
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bio.c
View file @
c3288348
...
...
@@ -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