bake-toolkit 2.34.2 → 2.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/blocks/block.rb +2 -4
- data/lib/common/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ce09ce9775f6b4322517f6b88935b7bf473e40d
|
4
|
+
data.tar.gz: be9156d919acee73ae486bb8f9a1197693701871
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baeb03be280b965d8f135c78b93c261cae0124e0cd59dde208ace9be0c45a4249c721c18832cffb1fec2ff3cc52d9dbe8090591030dd861e69a552f85dc20282
|
7
|
+
data.tar.gz: fc054cbff5b02d3cb63aba2d0187fd96c2bc3a4941f61d60555303f77b5b33cecdf08864e2edc1264ab83fa4d5e1cce00a8d8b70c947c7a871b5a4a6ccbd33bc
|
data/lib/blocks/block.rb
CHANGED
@@ -187,9 +187,7 @@ module Bake
|
|
187
187
|
def self.waitForAllThreads
|
188
188
|
if @@threads.length > 0
|
189
189
|
STDOUT.puts "DEBUG_THREADS: Wait for all threads." if Bake.options.debug_threads
|
190
|
-
|
191
|
-
STDOUT.puts "DEBUG_THREADS: Waited for #{t.object_id}"
|
192
|
-
}
|
190
|
+
@@threads.each{|t| while not t.join(2) do end}
|
193
191
|
@@threads = []
|
194
192
|
STDOUT.puts "DEBUG_THREADS: All threads finished." if Bake.options.debug_threads
|
195
193
|
end
|
@@ -290,7 +288,7 @@ module Bake
|
|
290
288
|
if @@threads.length == Bake.options.threads
|
291
289
|
begin
|
292
290
|
STDOUT.puts "DEBUG_THREADS: Wait for free thread." if Bake.options.debug_threads
|
293
|
-
endedThread = ThreadsWait.new(
|
291
|
+
endedThread = ThreadsWait.new(*@@threads).next_wait
|
294
292
|
STDOUT.puts "DEBUG_THREADS: Thread free: #{endedThread.object_id}" if Bake.options.debug_threads
|
295
293
|
@@threads.delete(endedThread)
|
296
294
|
rescue ErrNoWaitingThread
|
data/lib/common/version.rb
CHANGED