summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-07-20 12:42:57 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-07-20 13:20:58 +1200
commit1b3a6847be83ed1269b6eb87016c721ca33da8e5 (patch)
tree3e0a237875ce6e3d3ad316e94a7f9513af60c222 /internal
parentf3462d99a3dd8d535eda287b000cb035bade522c (diff)
Move declarations to private `internal/thread.h` header.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3323
Diffstat (limited to 'internal')
-rw-r--r--internal/thread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/thread.h b/internal/thread.h
index ac09923be0..91626b7e76 100644
--- a/internal/thread.h
+++ b/internal/thread.h
@@ -37,6 +37,10 @@ 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);
+VALUE rb_thread_scheduler_get(VALUE);
+VALUE rb_thread_scheduler_set(VALUE, VALUE);
+VALUE rb_thread_scheduler_if_nonblocking(VALUE thread);
+
RUBY_SYMBOL_EXPORT_BEGIN
/* Temporary. This API will be removed (renamed). */
VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd);