libuv 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f220977b333b90b774da50c8eecc41fed1c43418
4
- data.tar.gz: 79328f004deb9ef1d20b0fc828c0f1b41f482333
3
+ metadata.gz: abf4fa5abc23e37ed2b1a8796619a5a012406626
4
+ data.tar.gz: d8dc82d2fb7af00921a807663a6ae3434881f5c2
5
5
  SHA512:
6
- metadata.gz: a57b7aab9ec36ffcc50e342e771d605c4a0f5e2e6885ead53e43ca1558188f4b71a2ab20c6ae91b29f3a46f0032ef3addb744dee8a8c12ce3331c5bbd729385e
7
- data.tar.gz: b8bfefac46bd050cafb5cc2547938e8a8d6e58dd86873819c269e74a05d16b7a095cb039f97af387e7bef074106be3b5cb928c79b53b6ff11d7d1a715ab4b14d
6
+ metadata.gz: 51a3144245a9effeb09d987ae1df9d5b67f6796bbf9337607141717659bf5e2bca8669e7832d5b1e7948def24176778fef700631ef44308e3c508e28ee871f45
7
+ data.tar.gz: e38576a8b561534e6061511d4cbe776bcd482626d1f112c9549dd06e25badaf4378fc9c305af1502f93da5eedab4d82985a14adfe67cd3c1cf530ec9c6678115
@@ -8,8 +8,7 @@ module Libuv; end
8
8
  class Libuv::FiberPool
9
9
  def initialize(thread)
10
10
  @reactor = thread
11
- @pool = []
12
- @count = 0
11
+ reset
13
12
  end
14
13
 
15
14
  def exec
@@ -44,6 +43,11 @@ class Libuv::FiberPool
44
43
  @count
45
44
  end
46
45
 
46
+ def reset
47
+ @pool = []
48
+ @count = 0
49
+ end
50
+
47
51
 
48
52
  protected
49
53
 
@@ -170,6 +170,7 @@ module Libuv
170
170
  Thread.current.thread_variable_set(:reactor, @reactor)
171
171
  @throw_on_exit = nil
172
172
  update_time
173
+ @fiber_pool.reset
173
174
  @fiber_pool.exec { yield @reactor } if block_given?
174
175
  @run_count += 1
175
176
  ::Libuv::Ext.run(@pointer, run_type) # This is blocking
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Libuv
4
- VERSION = '3.2.1'
4
+ VERSION = '3.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libuv
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen von Takach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2017-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -303,7 +303,6 @@ files:
303
303
  - ext/libuv/src/unix/process.c
304
304
  - ext/libuv/src/unix/procfs-exepath.c
305
305
  - ext/libuv/src/unix/proctitle.c
306
- - ext/libuv/src/unix/pthread-barrier.c
307
306
  - ext/libuv/src/unix/pthread-fixes.c
308
307
  - ext/libuv/src/unix/signal.c
309
308
  - ext/libuv/src/unix/spinlock.h