diff options
author | Koichi Sasada <[email protected]> | 2020-09-14 10:30:22 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-09-15 00:04:59 +0900 |
commit | f7ccb8dd88c52b2294742c3abb87098ee4076799 (patch) | |
tree | 22b4a10cce30cf227bc6354e9adab7c3a5284335 /thread.c | |
parent | edb5c67195129e1d10f329edb55e486e1874b20e (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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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() |