SysVIPC 0.9.10 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
17
17
  EOT
18
18
 
19
19
  s.license = 'GPL2'
20
- s.authors = ['Steven Jenkins', 'Willem van Bergen']
21
- s.email = ['steven.jenkins@ieee.org', 'willem@railsdoctors.com']
20
+ s.authors = ['Steven Jenkins', 'Willem van Bergen', 'Julian Mehnle']
21
+ s.email = ['steven.jenkins@ieee.org', 'willem@railsdoctors.com', 'julian@mehnle.net']
22
22
  s.homepage = 'https://github.com/wvanbergen/SysVIPC'
23
23
 
24
24
  s.extensions = ["ext/SysVIPC/extconf.rb"]
@@ -277,6 +277,15 @@
277
277
  /* Flags for new pointer objects */
278
278
  #define SWIG_POINTER_OWN 0x1
279
279
 
280
+ #define THREAD_SLEEP(milliseconds) do\
281
+ {\
282
+ struct timeval st;\
283
+ st.tv_sec = 0;\
284
+ st.tv_usec = milliseconds * 1000;\
285
+ rb_thread_wait_for(st);\
286
+ } while (0)
287
+
288
+
280
289
 
281
290
  /*
282
291
  Flags/methods for returning states.
@@ -2135,7 +2144,7 @@ inner_msgrcv(int msqid, size_t msgsz, long msgtyp, int msgflg)
2135
2144
  case EAGAIN:
2136
2145
  #endif
2137
2146
  if (!nowait) {
2138
- rb_thread_polling ();
2147
+ THREAD_SLEEP(50);
2139
2148
  goto retry;
2140
2149
  }
2141
2150
  }
@@ -2189,7 +2198,7 @@ inner_msgsnd(int msqid, long int mtype, VALUE mtext, int msgflg)
2189
2198
  case EAGAIN:
2190
2199
  #endif
2191
2200
  if (!nowait) {
2192
- rb_thread_polling ();
2201
+ THREAD_SLEEP(50);
2193
2202
  goto retry;
2194
2203
  }
2195
2204
  }
@@ -2328,7 +2337,7 @@ static VALUE inner_semop(int semid, struct sembuf sops[], size_t nsops)
2328
2337
  case EAGAIN:
2329
2338
  #endif
2330
2339
  if (!nowait) {
2331
- rb_thread_polling ();
2340
+ THREAD_SLEEP(50);
2332
2341
  goto retry;
2333
2342
  }
2334
2343
  }
@@ -4984,7 +4993,7 @@ SWIGEXPORT void Init_SysVIPC(void) {
4984
4993
  }
4985
4994
 
4986
4995
  SWIG_RubyInitializeTrackings();
4987
- rb_define_const(mSysVIPC, "RELEASE", SWIG_FromCharPtr("0.9.9"));
4996
+ rb_define_const(mSysVIPC, "RELEASE", SWIG_FromCharPtr("0.10.0"));
4988
4997
  rb_define_singleton_method(mSysVIPC, "errno", _wrap_errno_get, 0);
4989
4998
  rb_define_const(mSysVIPC, "IPC_CREAT", SWIG_From_int((int)(IPC_CREAT)));
4990
4999
  rb_define_const(mSysVIPC, "IPC_EXCL", SWIG_From_int((int)(IPC_EXCL)));
@@ -1,3 +1,3 @@
1
1
  module SysVIPC
2
- VERSION = "0.9.10"
2
+ VERSION = "0.10.0"
3
3
  end
metadata CHANGED
@@ -1,19 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SysVIPC
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.10.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Steven Jenkins
8
9
  - Willem van Bergen
10
+ - Julian Mehnle
9
11
  autorequire:
10
12
  bindir: bin
11
13
  cert_chain: []
12
- date: 2013-10-15 00:00:00.000000000 Z
14
+ date: 2016-08-10 00:00:00.000000000 Z
13
15
  dependencies:
14
16
  - !ruby/object:Gem::Dependency
15
17
  name: rake
16
18
  requirement: !ruby/object:Gem::Requirement
19
+ none: false
17
20
  requirements:
18
21
  - - ! '>='
19
22
  - !ruby/object:Gem::Version
@@ -21,6 +24,7 @@ dependencies:
21
24
  type: :development
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
24
28
  requirements:
25
29
  - - ! '>='
26
30
  - !ruby/object:Gem::Version
@@ -28,6 +32,7 @@ dependencies:
28
32
  - !ruby/object:Gem::Dependency
29
33
  name: rake-compiler
30
34
  requirement: !ruby/object:Gem::Requirement
35
+ none: false
31
36
  requirements:
32
37
  - - ! '>='
33
38
  - !ruby/object:Gem::Version
@@ -35,6 +40,7 @@ dependencies:
35
40
  type: :development
36
41
  prerelease: false
37
42
  version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
38
44
  requirements:
39
45
  - - ! '>='
40
46
  - !ruby/object:Gem::Version
@@ -42,6 +48,7 @@ dependencies:
42
48
  - !ruby/object:Gem::Dependency
43
49
  name: minitest
44
50
  requirement: !ruby/object:Gem::Requirement
51
+ none: false
45
52
  requirements:
46
53
  - - ~>
47
54
  - !ruby/object:Gem::Version
@@ -49,6 +56,7 @@ dependencies:
49
56
  type: :development
50
57
  prerelease: false
51
58
  version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
52
60
  requirements:
53
61
  - - ~>
54
62
  - !ruby/object:Gem::Version
@@ -58,6 +66,7 @@ description: ! " Ruby extension that binds System V Inter-Process Communicati
58
66
  email:
59
67
  - steven.jenkins@ieee.org
60
68
  - willem@railsdoctors.com
69
+ - julian@mehnle.net
61
70
  executables: []
62
71
  extensions:
63
72
  - ext/SysVIPC/extconf.rb
@@ -78,7 +87,6 @@ files:
78
87
  homepage: https://github.com/wvanbergen/SysVIPC
79
88
  licenses:
80
89
  - GPL2
81
- metadata: {}
82
90
  post_install_message:
83
91
  rdoc_options:
84
92
  - --title
@@ -91,20 +99,23 @@ require_paths:
91
99
  - lib
92
100
  - ext
93
101
  required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
94
103
  requirements:
95
104
  - - ! '>='
96
105
  - !ruby/object:Gem::Version
97
106
  version: '0'
98
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
+ none: false
99
109
  requirements:
100
110
  - - ! '>='
101
111
  - !ruby/object:Gem::Version
102
112
  version: '0'
103
113
  requirements: []
104
114
  rubyforge_project: sysvipc
105
- rubygems_version: 2.1.4
115
+ rubygems_version: 1.8.23.2
106
116
  signing_key:
107
- specification_version: 4
117
+ specification_version: 3
108
118
  summary: System V Inter-Process Communication for Ruby
109
119
  test_files:
110
120
  - test/test_helper.rb
121
+ has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZjU2MjZkNzRkNzA2NzkxMmQzMjQ4ZWVkOGM5YzBiNGQwNDcxNjMyZA==
5
- data.tar.gz: !binary |-
6
- MzI5YTM4NDhjZmMwMzU3MDVkZjdlZDEyNTc2MDhjZjI5Njk5ZjUzZA==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- NGU1MzI4ZmMxODJjZWNhOGIwZmY5YjJjYzMzYzkwYWNkYTg4Y2Q0OGI2Y2Vi
10
- NGVjMzJjOGZjODY2MGNiZTJmNmE1YmY5YmE4YmFiYmNhNGJkYjc3NDhmZmE2
11
- YjE4ZTRlMTc2NGY5ZTMxMmNkODUxOWI1N2U5MWJmYjI5NjM2YjQ=
12
- data.tar.gz: !binary |-
13
- NzJmZmY2NWE2YmQzMzdiMzRiNmIyNzJkYzQ0YWFmZDA0NWVhZDUzNDY2N2Zl
14
- MTM2MzFkMTg0NGVmZWE4ZWNjMGVkMzEwYTc1Yjk3NmNmZTMxMTUwNDRlMzBl
15
- YjFjODJlY2UzN2Q5N2MwMjdmYWI3ZmI3ZjVlMDQzNzBkMzY2MDY=