rb_thread_pool 0.0.0

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/rb_thread_pool.rb +36 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 70f93840737f22eb4921b178a1dd7b70768a8f46
4
+ data.tar.gz: f4bec76ff332870ff18d7613a7910283f0e295b1
5
+ SHA512:
6
+ metadata.gz: d42e79b6ea919f860f65d92d3bd5983fe6f831d8c99d6ee8fc2491dcdc22121d8c39fee7df5e576b379c25c9036f65dd3ea69af496392b39c19558c21cdf3f08
7
+ data.tar.gz: 972b3a50e81d3c11e134a47881e076c06b7f56d373aa8afa1d787af9a245c7470b11532e3c26b172cddfe435aa1941f2f11a991203a346ffab501f2d9c019643
@@ -0,0 +1,36 @@
1
+ $LOAD_PATH.unshift(__dir__)
2
+ require 'core/base'
3
+
4
+
5
+ # pool = RBThreadPool::Base.new
6
+ # #
7
+ # pool.start!
8
+ # #
9
+ # 80.times do
10
+ # pool.pushb do
11
+ # sleep(5)
12
+ # puts 'hello'
13
+ # sleep(1)
14
+ # end
15
+ # end
16
+ # #
17
+ #
18
+ #
19
+ # Thread.list.each do |th|
20
+ # p th
21
+ # end
22
+ #
23
+ # pool.join_all
24
+
25
+ #<Thread:0x007f8da10bc328 run>
26
+ #<Thread:0x007f8da2855cf0@/Users/nick/rubyproject/thread_pool/core/rb_daemon.rb:23 sleep>
27
+ #<Thread:0x007f8da2855bd8@/Users/nick/rubyproject/thread_pool/core/rb_thread.rb:23 sleep>
28
+ #<Thread:0x007f8da2855a98@/Users/nick/rubyproject/thread_pool/core/rb_thread.rb:23 sleep>
29
+ #<Thread:0x007f8da2855958@/Users/nick/rubyproject/thread_pool/core/rb_thread.rb:23 sleep>
30
+ #<Thread:0x007f8da2855818@/Users/nick/rubyproject/thread_pool/core/rb_thread.rb:23 sleep>
31
+ #<Thread:0x007f8da28556d8@/Users/nick/rubyproject/thread_pool/core/rb_thread.rb:23 sleep>
32
+ #<Thread:0x007f8da2854490@/Users/nick/rubyproject/thread_pool/core/rb_elastic.rb:17 sleep>
33
+ #<Thread:0x007f8da2854300@/Users/nick/rubyproject/thread_pool/core/rb_elastic.rb:17 sleep>
34
+ #<Thread:0x007f8da2854198@/Users/nick/rubyproject/thread_pool/core/rb_elastic.rb:17 sleep>
35
+ #<Thread:0x007f8da2854008@/Users/nick/rubyproject/thread_pool/core/rb_elastic.rb:17 sleep>
36
+ #<Thread:0x007f8da3067e20@/Users/nick/rubyproject/thread_pool/core/rb_elastic.rb:17 sleep>
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rb_thread_pool
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Nick An
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-07-14 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A rb thread pool
14
+ email: 1198847374@qq.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/rb_thread_pool.rb
20
+ homepage: https://github.com/nickoan/rb-thread-pool
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.6.12
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: thread pool
44
+ test_files: []