diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-09-11 18:30:27 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-09-15 00:04:59 +0900 |
commit | 74ddac1c822697b442646f433d60e2c099db3c3b (patch) | |
tree | 12267700a22949057b28bbb348105f2a7a42fa74 /vm_core.h | |
parent | f7ccb8dd88c52b2294742c3abb87098ee4076799 (diff) |
relax dependency
vm_sync.h does not need to include vm_core.h and ractor_pub.h.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3534
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1838,6 +1838,10 @@ void rb_fiber_close(rb_fiber_t *fib); void Init_native_thread(rb_thread_t *th); int rb_vm_check_ints_blocking(rb_execution_context_t *ec); +// vm_sync.h +void rb_vm_cond_wait(rb_vm_t *vm, rb_nativethread_cond_t *cond); +void rb_vm_cond_timedwait(rb_vm_t *vm, rb_nativethread_cond_t *cond, unsigned long msec); + #define RUBY_VM_CHECK_INTS(ec) rb_vm_check_ints(ec) static inline void rb_vm_check_ints(rb_execution_context_t *ec) |