ruby-changes:62320
From: Samuel <ko1@a...>
Date: Mon, 20 Jul 2020 10:21:19 +0900 (JST)
Subject: [ruby-changes:62320] 1b3a6847be (master): Move declarations to private `internal/thread.h` header.
https://git.ruby-lang.org/ruby.git/commit/?id=1b3a6847be From 1b3a6847be83ed1269b6eb87016c721ca33da8e5 Mon Sep 17 00:00:00 2001 From: Samuel Williams <samuel.williams@o...> Date: Mon, 20 Jul 2020 12:42:57 +1200 Subject: Move declarations to private `internal/thread.h` header. diff --git a/include/ruby/internal/intern/thread.h b/include/ruby/internal/intern/thread.h index 4b3f08e..a12a371 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); https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/intern/thread.h#L71 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 ac09923..91626b7 100644 --- a/internal/thread.h +++ b/internal/thread.h @@ -37,6 +37,10 @@ void rb_mutex_allow_trap(VALUE self, int val); https://github.com/ruby/ruby/blob/trunk/internal/thread.h#L37 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); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/