Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
htslib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thierry Schuepbach
htslib
Commits
49b6d959
Commit
49b6d959
authored
Apr 18, 2018
by
Rob Davies
Browse files
Options
Downloads
Patches
Plain Diff
Only signal input queue not full if it really is not full
parent
979e6f21
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
thread_pool.c
+2
-1
2 additions, 1 deletion
thread_pool.c
with
2 additions
and
1 deletion
thread_pool.c
+
2
−
1
View file @
49b6d959
...
...
@@ -159,6 +159,7 @@ static hts_tpool_result *hts_tpool_next_result_locked(hts_tpool_process *q) {
// Not technically input full, but can guarantee there is
// room for the input to go somewhere so we still signal.
// The waiting code will then check the condition again.
if
(
q
->
n_input
<
q
->
qsize
)
pthread_cond_signal
(
&
q
->
input_not_full_c
);
if
(
!
q
->
shutdown
)
wake_next_worker
(
q
,
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment