pthread 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/pthread/version.rb +1 -1
- data/pthread.gemspec +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -34,13 +34,13 @@ or
|
|
34
34
|
|
35
35
|
Methods #add_executor and #add_executors take an optional parameter that specifies a queue name.
|
36
36
|
|
37
|
-
In order to connect an executor from a separate machine in your programm you can call
|
37
|
+
In order to connect an executor from a separate machine in your programm you can call:
|
38
38
|
|
39
39
|
PthreadExecutor.new '192.168.1.100:12345', 'tasks'
|
40
40
|
|
41
41
|
specifing the host and a desired queue.
|
42
42
|
|
43
|
-
Now you can spawn Pthreads in gain multicore performance by providing name of the queue, code to be executed and context variables:
|
43
|
+
Now you can spawn Pthreads in order to gain multicore performance by providing name of the queue, code to be executed and context variables:
|
44
44
|
|
45
45
|
Pthread::Pthread.new queue: 'tasks', code: %{
|
46
46
|
x ** 2
|
data/lib/pthread/version.rb
CHANGED
data/pthread.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ['nikita.cernovs@gmail.com']
|
11
11
|
spec.description = %q{Parallel threads in Ruby using dRb}
|
12
12
|
spec.summary = %q{Parallel threads in Ruby}
|
13
|
-
spec.homepage = ''
|
13
|
+
spec.homepage = 'http://nikitachernov.github.io/Pthread'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pthread
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -80,7 +80,7 @@ files:
|
|
80
80
|
- spec/pthread/pthread_spec.rb
|
81
81
|
- spec/spec_helper.rb
|
82
82
|
- spec_helper.rb
|
83
|
-
homepage:
|
83
|
+
homepage: http://nikitachernov.github.io/Pthread
|
84
84
|
licenses:
|
85
85
|
- MIT
|
86
86
|
post_install_message:
|