utilrb 3.0.0.rc1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/utilrb/thread_pool.rb +5 -5
- data/lib/utilrb/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: becf09fee88559811629a72aee4fe627a86f2231
|
4
|
+
data.tar.gz: 1f690f7883cf11362a8f1656a3e04cdfc6f98da1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aeaf57d6ab7deeab1027b82e796127e23adc2acf2291df450f1b4b76f466ef12acc9f74a2e9cc1c2727c6732c50b7e5d2d9ad553f277c70cd583c971bfc3c62
|
7
|
+
data.tar.gz: 52766e2bc24e6c27c27af4d5410da75e86077bc7c476240ab0f82116ac6b9847c92ecf8cb38e7e88d6913932eb786db60968cc2cac011a9920900650a267a802
|
data/lib/utilrb/thread_pool.rb
CHANGED
@@ -593,13 +593,13 @@ module Utilrb
|
|
593
593
|
ensure
|
594
594
|
@mutex.synchronize do
|
595
595
|
@tasks_running.delete current_task
|
596
|
-
|
596
|
+
if current_task.sync_key
|
597
|
+
@sync_keys.delete(current_task.sync_key)
|
598
|
+
@cond_sync_key.signal
|
599
|
+
@cond.signal # maybe another thread is waiting for a sync key
|
600
|
+
end
|
597
601
|
@avg_run_time = moving_average(@avg_run_time,(current_task.stopped_at-current_task.started_at))
|
598
602
|
end
|
599
|
-
if current_task.sync_key
|
600
|
-
@cond_sync_key.signal
|
601
|
-
@cond.signal # maybe another thread is waiting for a sync key
|
602
|
-
end
|
603
603
|
current_task.finalize # propagate state after it was deleted from the internal lists
|
604
604
|
@callback_on_task_finished.call(current_task) if @callback_on_task_finished
|
605
605
|
end
|
data/lib/utilrb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utilrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain Joyeux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facets
|
@@ -211,9 +211,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: '0'
|
212
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
213
|
requirements:
|
214
|
-
- - "
|
214
|
+
- - ">="
|
215
215
|
- !ruby/object:Gem::Version
|
216
|
-
version:
|
216
|
+
version: '0'
|
217
217
|
requirements: []
|
218
218
|
rubyforge_project:
|
219
219
|
rubygems_version: 2.2.3
|
@@ -221,4 +221,3 @@ signing_key:
|
|
221
221
|
specification_version: 4
|
222
222
|
summary: Utilrb is yet another Ruby toolkit, in the spirit of facets
|
223
223
|
test_files: []
|
224
|
-
has_rdoc:
|