summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-08-20 13:51:45 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-09-14 16:44:09 +1200
commitd387029f39d976565c955377117103499d47ff09 (patch)
tree0a28459f929867c698d243584bc676c4ddad100c /process.c
parent905e9c8093b2bb06def609975929465be0f41a0c (diff)
Standardised scheduler interface.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3434
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/process.c b/process.c
index 34dd986953..317f7ff3ec 100644
--- a/process.c
+++ b/process.c
@@ -13,6 +13,8 @@
#include "ruby/internal/config.h"
+#include "internal/scheduler.h"
+
#include <ctype.h>
#include <errno.h>
#include <signal.h>
@@ -4927,7 +4929,7 @@ rb_f_sleep(int argc, VALUE *argv, VALUE _)
VALUE scheduler = rb_thread_scheduler_if_nonblocking(rb_thread_current());
if (scheduler != Qnil) {
- rb_funcallv(scheduler, rb_intern("wait_sleep"), argc, argv);
+ rb_scheduler_kernel_sleepv(scheduler, argc, argv);
}
else {
if (argc == 0) {