libvirt_async 0.3.0 → 0.3.1
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/libvirt_async/handle.rb +1 -1
- data/lib/libvirt_async/implementations.rb +6 -6
- data/lib/libvirt_async/timer.rb +1 -1
- data/lib/libvirt_async/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29068169acb33c40aab3b68ae326e5255697591105d7a0dd08e7f48c85ecf6ec
|
|
4
|
+
data.tar.gz: b776639631e12eae19e85d0479944f8b9844f1261776bf19374ad6d484dc12f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '00782199bb68a055e4976fed53ab2a9fa4db234fc43808fa8b0d4c4e4b67e6f91522ac32c45bfbf10007bd71a5ab0ea949f0d9c94b7facaa4c3ada5a325a2277'
|
|
7
|
+
data.tar.gz: 86b0d33d74b5f0e69a278becafb26d585e1cec551201a38356fe39da55a23a2fda3a70187e2462dea5fe197e45cca22cfe551d8401ba61dcd87d858600b40c12
|
data/lib/libvirt_async/handle.rb
CHANGED
|
@@ -121,7 +121,7 @@ module LibvirtAsync
|
|
|
121
121
|
dbg { "#{self.class}#dispatch async ends handle_id=#{handle_id} received_events=#{events}, fd=#{fd}" }
|
|
122
122
|
end
|
|
123
123
|
dbg { "#{self.class}#dispatch invokes fiber=0x#{task.fiber.object_id.to_s(16)} handle_id=#{handle_id}, events=#{events}, fd=#{fd}" }
|
|
124
|
-
task.
|
|
124
|
+
task.reactor << task.fiber
|
|
125
125
|
|
|
126
126
|
dbg { "#{self.class}#dispatch ends handle_id=#{handle_id}, events=#{events}, fd=#{fd}" }
|
|
127
127
|
end
|
|
@@ -63,12 +63,12 @@ module LibvirtAsync
|
|
|
63
63
|
dbg { "#{self.class}#register_implementations" }
|
|
64
64
|
|
|
65
65
|
Libvirt::Event.register(
|
|
66
|
-
method(:add_handle).to_proc,
|
|
67
|
-
method(:update_handle).to_proc,
|
|
68
|
-
method(:remove_handle).to_proc,
|
|
69
|
-
method(:add_timer).to_proc,
|
|
70
|
-
method(:update_timer).to_proc,
|
|
71
|
-
method(:remove_timer).to_proc
|
|
66
|
+
add_handle: method(:add_handle).to_proc,
|
|
67
|
+
update_handle: method(:update_handle).to_proc,
|
|
68
|
+
remove_handle: method(:remove_handle).to_proc,
|
|
69
|
+
add_timer: method(:add_timer).to_proc,
|
|
70
|
+
update_timer: method(:update_timer).to_proc,
|
|
71
|
+
remove_timer: method(:remove_timer).to_proc
|
|
72
72
|
)
|
|
73
73
|
end
|
|
74
74
|
|
data/lib/libvirt_async/timer.rb
CHANGED
|
@@ -119,7 +119,7 @@ module LibvirtAsync
|
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
dbg { "#{self.class}#dispatch invokes fiber=0x#{task.fiber.object_id.to_s(16)} timer_id=#{timer_id}, interval=#{interval}" }
|
|
122
|
-
task.
|
|
122
|
+
task.reactor << task.fiber
|
|
123
123
|
|
|
124
124
|
dbg { "#{self.class}#dispatch ends timer_id=#{timer_id}, interval=#{interval}" }
|
|
125
125
|
end
|