diff options
author | Samuel Williams <[email protected]> | 2020-07-20 12:42:57 +1200 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2020-07-20 13:20:58 +1200 |
commit | 1b3a6847be83ed1269b6eb87016c721ca33da8e5 (patch) | |
tree | 3e0a237875ce6e3d3ad316e94a7f9513af60c222 | |
parent | f3462d99a3dd8d535eda287b000cb035bade522c (diff) |
Move declarations to private `internal/thread.h` header.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3323
-rw-r--r-- | include/ruby/internal/intern/thread.h | 5 | ||||
-rw-r--r-- | internal/thread.h | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/include/ruby/internal/intern/thread.h b/include/ruby/internal/intern/thread.h index 4b3f08e571..a12a371058 100644 --- a/include/ruby/internal/intern/thread.h +++ b/include/ruby/internal/intern/thread.h @@ -71,11 +71,6 @@ VALUE rb_mutex_unlock(VALUE mutex); VALUE rb_mutex_sleep(VALUE self, VALUE timeout); VALUE rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg); -VALUE rb_thread_scheduler_get(VALUE); -VALUE rb_thread_scheduler_set(VALUE, VALUE); - -VALUE rb_thread_scheduler_if_nonblocking(VALUE thread); - RBIMPL_SYMBOL_EXPORT_END() #endif /* RBIMPL_INTERN_THREAD_H */ 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); |