summaryrefslogtreecommitdiff
path: root/internal/thread.h
diff options
context:
space:
mode:
authorSamuel Williams <[email protected]>2020-08-20 13:51:45 +1200
committerSamuel Williams <[email protected]>2020-09-14 16:44:09 +1200
commitd387029f39d976565c955377117103499d47ff09 (patch)
tree0a28459f929867c698d243584bc676c4ddad100c /internal/thread.h
parent905e9c8093b2bb06def609975929465be0f41a0c (diff)
Standardised scheduler interface.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3434
Diffstat (limited to 'internal/thread.h')
-rw-r--r--internal/thread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/thread.h b/internal/thread.h
index e7a9019b88..13e419bc95 100644
--- a/internal/thread.h
+++ b/internal/thread.h
@@ -37,6 +37,8 @@ void rb_mutex_allow_trap(VALUE self, int val);
VALUE rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data);
VALUE rb_mutex_owned_p(VALUE self);
+int rb_thread_wait_for_single_fd(int fd, int events, struct timeval * timeout);
+
VALUE rb_thread_scheduler_get(VALUE thread);
VALUE rb_thread_scheduler_set(VALUE thread, VALUE scheduler);