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
aba57a1b
Unverified
Commit
aba57a1b
authored
Sep 07, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Sep 07, 2018
Browse files
Merge pull request #5324 from youjiali1995/fix-bio
bio: fix bioWaitStepOfType.
parents
596749e7
c3288348
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bio.c
View file @
aba57a1b
...
...
@@ -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