process_shared 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +25 -2
- data/ext/libpsem/psem_posix.c +34 -4
- data/lib/process_shared/abstract_semaphore.rb +22 -2
- data/lib/process_shared/binary_semaphore.rb +48 -0
- data/lib/process_shared/bounded_semaphore.rb +5 -5
- data/lib/process_shared/condition_variable.rb +30 -4
- data/lib/process_shared/libpsem.so +0 -0
- data/lib/process_shared/mutex.rb +15 -15
- data/lib/process_shared/posix_call.rb +3 -3
- data/lib/process_shared/psem.rb +7 -3
- data/lib/process_shared/semaphore.rb +23 -5
- data/lib/process_shared/shared_array.rb +69 -0
- data/lib/process_shared/shared_memory.rb +80 -12
- data/lib/process_shared/shared_memory_io.rb +321 -0
- data/lib/process_shared/with_self.rb +2 -2
- data/spec/process_shared/binary_semaphore_spec.rb +13 -0
- data/spec/process_shared/condition_variable_spec.rb +67 -0
- data/spec/process_shared/semaphore_spec.rb +41 -0
- data/spec/process_shared/shared_array_spec.rb +26 -0
- data/spec/process_shared/shared_memory_spec.rb +25 -0
- data/spec/spec_helper.rb +11 -2
- metadata +70 -82
metadata
CHANGED
@@ -1,91 +1,83 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: process_shared
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 3
|
10
|
-
version: 0.0.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Patrick Mahoney
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-12-21 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: ffi
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &13991240 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
version: "1.0"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.0'
|
33
22
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rake-compiler
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: *13991240
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &13990820 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
47
33
|
type: :development
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: minitest
|
51
34
|
prerelease: false
|
52
|
-
|
35
|
+
version_requirements: *13990820
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rake-compiler
|
38
|
+
requirement: &13990280 !ruby/object:Gem::Requirement
|
53
39
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
61
44
|
type: :development
|
62
|
-
version_requirements: *id003
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: minitest-matchers
|
65
45
|
prerelease: false
|
66
|
-
|
46
|
+
version_requirements: *13990280
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: minitest
|
49
|
+
requirement: &13989780 !ruby/object:Gem::Requirement
|
67
50
|
none: false
|
68
|
-
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
segments:
|
73
|
-
- 0
|
74
|
-
version: "0"
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
75
55
|
type: :development
|
76
|
-
|
77
|
-
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *13989780
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: minitest-matchers
|
60
|
+
requirement: &13989260 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *13989260
|
69
|
+
description: FFI wrapper around portable semaphore library with mutex and condition
|
70
|
+
vars built on top.
|
78
71
|
email: pat@polycrystal.org
|
79
72
|
executables: []
|
80
|
-
|
81
|
-
extensions:
|
73
|
+
extensions:
|
82
74
|
- ext/pthread_sync_helper/extconf.rb
|
83
75
|
- ext/libpsem/extconf.rb
|
84
|
-
extra_rdoc_files:
|
76
|
+
extra_rdoc_files:
|
85
77
|
- README.rdoc
|
86
78
|
- ChangeLog
|
87
79
|
- COPYING
|
88
|
-
files:
|
80
|
+
files:
|
89
81
|
- lib/scratch.rb
|
90
82
|
- lib/process_shared.rb
|
91
83
|
- lib/process_shared/abstract_semaphore.rb
|
@@ -93,8 +85,11 @@ files:
|
|
93
85
|
- lib/process_shared/process_error.rb
|
94
86
|
- lib/process_shared/thread.rb
|
95
87
|
- lib/process_shared/mutex.rb
|
88
|
+
- lib/process_shared/shared_memory_io.rb
|
96
89
|
- lib/process_shared/semaphore.rb
|
97
90
|
- lib/process_shared/rt.rb
|
91
|
+
- lib/process_shared/shared_array.rb
|
92
|
+
- lib/process_shared/binary_semaphore.rb
|
98
93
|
- lib/process_shared/psem.rb
|
99
94
|
- lib/process_shared/with_self.rb
|
100
95
|
- lib/process_shared/define_singleton_method.rb
|
@@ -124,7 +119,10 @@ files:
|
|
124
119
|
- ext/libpsem/extconf.rb
|
125
120
|
- spec/process_shared/psem_spec.rb
|
126
121
|
- spec/process_shared/shared_memory_spec.rb
|
122
|
+
- spec/process_shared/binary_semaphore_spec.rb
|
123
|
+
- spec/process_shared/condition_variable_spec.rb
|
127
124
|
- spec/process_shared/mutex_spec.rb
|
125
|
+
- spec/process_shared/shared_array_spec.rb
|
128
126
|
- spec/process_shared/bounded_semaphore_spec.rb
|
129
127
|
- spec/process_shared/semaphore_spec.rb
|
130
128
|
- spec/process_shared/libc_spec.rb
|
@@ -134,36 +132,26 @@ files:
|
|
134
132
|
- COPYING
|
135
133
|
homepage: https://github.com/pmahoney/process_shared
|
136
134
|
licenses: []
|
137
|
-
|
138
135
|
post_install_message:
|
139
136
|
rdoc_options: []
|
140
|
-
|
141
|
-
require_paths:
|
137
|
+
require_paths:
|
142
138
|
- lib
|
143
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
140
|
none: false
|
145
|
-
requirements:
|
146
|
-
- -
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
|
149
|
-
|
150
|
-
- 0
|
151
|
-
version: "0"
|
152
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
146
|
none: false
|
154
|
-
requirements:
|
155
|
-
- -
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
|
158
|
-
segments:
|
159
|
-
- 0
|
160
|
-
version: "0"
|
147
|
+
requirements:
|
148
|
+
- - ! '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
161
151
|
requirements: []
|
162
|
-
|
163
152
|
rubyforge_project:
|
164
153
|
rubygems_version: 1.8.10
|
165
154
|
signing_key:
|
166
155
|
specification_version: 3
|
167
156
|
summary: process-shared synchronization primitives
|
168
157
|
test_files: []
|
169
|
-
|