[SCM] ci-tooling packaging branch, master, updated. f7edf6a3bc2ea608b36734634de1f1534733cc27
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Mon Feb 23 14:24:37 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=f7edf6a
The following commit has been merged in the master branch:
commit f7edf6a3bc2ea608b36734634de1f1534733cc27
Author: Harald Sitter <sitter at kde.org>
Date: Mon Feb 23 15:24:34 2015 +0100
do not force the call overhead onto pools that do not need to abort
---
lib/thread_pool.rb | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lib/thread_pool.rb b/lib/thread_pool.rb
index ceb7bf8..f954505 100644
--- a/lib/thread_pool.rb
+++ b/lib/thread_pool.rb
@@ -10,9 +10,13 @@ module BlockingThreadPool
def self.run(count = 16, abort_on_exception: true, &block)
threads = []
count.times do
- threads << Thread.new(nil) do
- Thread.current.abort_on_exception = abort_on_exception
- block.call
+ if abort_on_exception
+ threads << Thread.new(nil) do
+ Thread.current.abort_on_exception = abort_on_exception
+ block.call
+ end
+ else
+ threads << Thread.new(nil, &block)
end
end
ThreadsWait.all_waits(threads)
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list