diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-07-18 15:10:17 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-07-20 13:20:58 +1200 |
commit | f3462d99a3dd8d535eda287b000cb035bade522c (patch) | |
tree | a1655328cd977dd10a6a2a020b7c57839b4bd1a9 /include | |
parent | 9f6a3d030682e9f99c77c2ef31881f9801c3979e (diff) | |
download | ruby-f3462d99a3dd8d535eda287b000cb035bade522c.tar.gz |
Rename `rb_current_thread_scheduler` to `rb_thread_scheduler_if_nonblocking`.
Correctly capture thread before releasing GVL and pass as argument to
`rb_thread_scheduler_if_nonblocking`.
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/internal/intern/thread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ruby/internal/intern/thread.h b/include/ruby/internal/intern/thread.h index 4a840cd881..4b3f08e571 100644 --- a/include/ruby/internal/intern/thread.h +++ b/include/ruby/internal/intern/thread.h @@ -73,7 +73,8 @@ 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_current_thread_scheduler(void); + +VALUE rb_thread_scheduler_if_nonblocking(VALUE thread); RBIMPL_SYMBOL_EXPORT_END() |