Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tweak thread starting in queue accessor.
Create up towards the limit, rather than assuming one is enough, as
that may lead to deadlocks.
  • Loading branch information
jnthn committed Apr 20, 2014
1 parent 0b1f8aa commit 170241a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ThreadPoolScheduler.pm
Expand Up @@ -59,7 +59,7 @@ my class ThreadPoolScheduler does Scheduler {

method queue() {
self!initialize unless $!started_any;
self!maybe_new_thread() unless $!started_any;
self!maybe_new_thread();
$!queue
}

Expand Down

0 comments on commit 170241a

Please sign in to comment.