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 +4 -4
- data/lib/libuv/fiber_pool.rb +6 -2
- data/lib/libuv/reactor.rb +1 -0
- data/lib/libuv/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abf4fa5abc23e37ed2b1a8796619a5a012406626
|
4
|
+
data.tar.gz: d8dc82d2fb7af00921a807663a6ae3434881f5c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51a3144245a9effeb09d987ae1df9d5b67f6796bbf9337607141717659bf5e2bca8669e7832d5b1e7948def24176778fef700631ef44308e3c508e28ee871f45
|
7
|
+
data.tar.gz: e38576a8b561534e6061511d4cbe776bcd482626d1f112c9549dd06e25badaf4378fc9c305af1502f93da5eedab4d82985a14adfe67cd3c1cf530ec9c6678115
|
data/lib/libuv/fiber_pool.rb
CHANGED
@@ -8,8 +8,7 @@ module Libuv; end
|
|
8
8
|
class Libuv::FiberPool
|
9
9
|
def initialize(thread)
|
10
10
|
@reactor = thread
|
11
|
-
|
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
|
|
data/lib/libuv/reactor.rb
CHANGED
@@ -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
|
data/lib/libuv/version.rb
CHANGED
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.
|
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
|
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
|