summaryrefslogtreecommitdiff
path: root/internal/scheduler.h
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-09-20 11:34:02 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-09-21 09:51:33 +1200
commit501fff14c7657f769d68f90de98fd2ebccb807fb (patch)
tree10dfcaf36b27dcd6b83268f9b0de2516fed41ec2 /internal/scheduler.h
parentb6d599d76ec85422bea16b63f105985cf08e04bd (diff)
When setting current thread scheduler to nil, invoke `#close`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3557
Diffstat (limited to 'internal/scheduler.h')
-rw-r--r--internal/scheduler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/scheduler.h b/internal/scheduler.h
index 54f59f1a952..73915ad6515 100644
--- a/internal/scheduler.h
+++ b/internal/scheduler.h
@@ -14,6 +14,8 @@
VALUE rb_scheduler_timeout(struct timeval *timeout);
+VALUE rb_scheduler_close(VALUE scheduler);
+
VALUE rb_scheduler_kernel_sleep(VALUE scheduler, VALUE duration);
VALUE rb_scheduler_kernel_sleepv(VALUE scheduler, int argc, VALUE * argv);