parallel_server 0.1.6 → 0.1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parallel_server/prefork.rb +3 -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: 6a136c01524742c7fcd509a8ce2079fa2896b973
|
4
|
+
data.tar.gz: 23337bf0c6f2bddd6f456aa1bf8f5ef2f3f448f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2f58f56e522351ab0e5bafa318e72efcf7e01a78b4449ea1b4651da4926d9a33272d8a43f3cf38c4140a61f16698131da8945a4a963a2f7db3c0a16c1e216d6
|
7
|
+
data.tar.gz: cba4e9e31458f792befd1c72886f70e9ca3233f49c4ff01f735c5c04bcd710bf0bd0ba411996bf074feb0b5e600c20582fb362e19d33dc6299d5bb9f4d3684d8
|
@@ -465,7 +465,9 @@ module ParallelServer
|
|
465
465
|
# @return [void]
|
466
466
|
def wait_thread
|
467
467
|
@threads_mutex.synchronize do
|
468
|
-
while
|
468
|
+
while true
|
469
|
+
@threads.select!{|thr,| thr.alive?}
|
470
|
+
break if @threads.size < max_threads
|
469
471
|
@threads_cv.wait(@threads_mutex)
|
470
472
|
end
|
471
473
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.6
|
4
|
+
version: 0.1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomita Masahiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Parallel TCP Server library. This is easy to make Multi-Process / Multi-Thread
|
14
14
|
server
|
@@ -23,7 +23,7 @@ files:
|
|
23
23
|
- test/parallel_server/test_prefork.rb
|
24
24
|
homepage: http://github.com/tmtm/parallel_server
|
25
25
|
licenses:
|
26
|
-
- Ruby
|
26
|
+
- Ruby
|
27
27
|
metadata: {}
|
28
28
|
post_install_message:
|
29
29
|
rdoc_options: []
|
@@ -41,10 +41,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
41
|
version: '0'
|
42
42
|
requirements: []
|
43
43
|
rubyforge_project:
|
44
|
-
rubygems_version: 2.
|
44
|
+
rubygems_version: 2.5.2
|
45
45
|
signing_key:
|
46
46
|
specification_version: 4
|
47
47
|
summary: Parallel TCP Server library
|
48
48
|
test_files:
|
49
49
|
- test/parallel_server/test_prefork.rb
|
50
|
-
has_rdoc: true
|