rage-iodine 5.9.0 → 5.10.0
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/ext/iodine/scheduler.c +5 -1
- data/lib/iodine/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: b869351f84a2f0fa2bddf28af239ab5a6839de5940d0f98676531510d72cb431
|
|
4
|
+
data.tar.gz: c72f7900473128868b50859e8879887812a3dc49c3fab7b6a125c5a6efd16dc3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e438ccf646901587bcd0728586eabf27e00c2c997acc9c954e55ae2dbdf80b451db9d89290401154011fdf67a94eac8e4bd903453d2e2a811041a48381751dc4
|
|
7
|
+
data.tar.gz: 7d814fd377e4f74418f0116187f792a1c1495d5efc5623e8a96558357d43dbbce6ee356e6d7dd86bda4255e31049a0e95d3d036dc77ae0a536091df61117fb5b
|
data/ext/iodine/scheduler.c
CHANGED
|
@@ -24,7 +24,8 @@ Fiber Scheduler API
|
|
|
24
24
|
***************************************************************************** */
|
|
25
25
|
|
|
26
26
|
static void noop(intptr_t uuid, fio_protocol_s *protocol) {
|
|
27
|
-
|
|
27
|
+
/* Scheduler watches are one-shot, including unwanted read events. */
|
|
28
|
+
fio_suspend(uuid);
|
|
28
29
|
(void)protocol;
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -51,6 +52,9 @@ static void iodine_scheduler_task_close(intptr_t uuid, fio_protocol_s *fio_proto
|
|
|
51
52
|
static void iodine_scheduler_task_perform(intptr_t uuid, fio_protocol_s *fio_protocol) {
|
|
52
53
|
scheduler_protocol_s *protocol = (scheduler_protocol_s *)fio_protocol;
|
|
53
54
|
|
|
55
|
+
/* Suspend before resuming Ruby: it may immediately attach the next wait. */
|
|
56
|
+
fio_suspend(uuid);
|
|
57
|
+
|
|
54
58
|
if (!protocol->fulfilled) {
|
|
55
59
|
IodineCaller.call(protocol->block, call_id);
|
|
56
60
|
protocol->fulfilled = 1;
|
data/lib/iodine/version.rb
CHANGED