libuv 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libuv/ext/types.rb +2 -1
- data/lib/libuv/loop.rb +2 -0
- data/lib/libuv/timer.rb +2 -0
- data/lib/libuv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a07dc9046eeede47dcedf9b963e0a54881df2e8
|
4
|
+
data.tar.gz: a862c88b532ff0b5a75825188f555187ec59f08f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1150a7c43983b3f1b9e99a19e4f6135f4215759757fe2c3a3f591bd67e86980f58475af1dd74f7cdacd868d764e77096b6feb9720d98f4a03b51fe02e8702fb
|
7
|
+
data.tar.gz: 6477289ae8999a5c4876f81a67604ed971a4b888aceee0dc4ae0c59063d653dba87435361d38a9b1ee5687268733507501b2581f744618ac742ff23868684bed
|
data/lib/libuv/ext/types.rb
CHANGED
data/lib/libuv/loop.rb
CHANGED
@@ -92,6 +92,7 @@ module Libuv
|
|
92
92
|
def process_queue_cb
|
93
93
|
# ensure we only execute what was required for this tick
|
94
94
|
length = @run_queue.length
|
95
|
+
update_time
|
95
96
|
length.times do
|
96
97
|
process_item
|
97
98
|
end
|
@@ -132,6 +133,7 @@ module Libuv
|
|
132
133
|
@reactor_thread = Thread.current
|
133
134
|
LOOPS[@reactor_thread] = @loop
|
134
135
|
if block_given?
|
136
|
+
update_time
|
135
137
|
if @@use_fibers
|
136
138
|
Fiber.new { yield @loop_notify.promise }.resume
|
137
139
|
else
|
data/lib/libuv/timer.rb
CHANGED
@@ -32,6 +32,7 @@ module Libuv
|
|
32
32
|
timeout = timeout.to_i
|
33
33
|
repeat = repeat.to_i
|
34
34
|
|
35
|
+
@loop.update_time
|
35
36
|
error = check_result ::Libuv::Ext.timer_start(handle, callback(:on_timer), timeout, repeat)
|
36
37
|
reject(error) if error
|
37
38
|
end
|
@@ -47,6 +48,7 @@ module Libuv
|
|
47
48
|
# Resets the current repeat
|
48
49
|
def again
|
49
50
|
return if @closed
|
51
|
+
@loop.update_time
|
50
52
|
error = check_result ::Libuv::Ext.timer_again(handle)
|
51
53
|
reject(error) if error
|
52
54
|
end
|
data/lib/libuv/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libuv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bulat Shakirzyanov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|