summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-09-14 10:30:22 +0900
committerKoichi Sasada <ko1@atdot.net>2020-09-15 00:04:59 +0900
commitf7ccb8dd88c52b2294742c3abb87098ee4076799 (patch)
tree22b4a10cce30cf227bc6354e9adab7c3a5284335 /thread.c
parentedb5c67195129e1d10f329edb55e486e1874b20e (diff)
restart Ractor.select on intterupt
signal can interrupt Ractor.select, but if there is no exception, Ractor.select should restart automatically.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3534
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index ab574e5..6b20716 100644
--- a/thread.c
+++ b/thread.c
@@ -218,6 +218,12 @@ vm_check_ints_blocking(rb_execution_context_t *ec)
return rb_threadptr_execute_interrupts(th, 1);
}
+int
+rb_vm_check_ints_blocking(rb_execution_context_t *ec)
+{
+ return vm_check_ints_blocking(ec);
+}
+
/*
* poll() is supported by many OSes, but so far Linux is the only
* one we know of that supports using poll() in all places select()