summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-09-11 18:30:27 +0900
committerKoichi Sasada <ko1@atdot.net>2020-09-15 00:04:59 +0900
commit74ddac1c822697b442646f433d60e2c099db3c3b (patch)
tree12267700a22949057b28bbb348105f2a7a42fa74 /vm_core.h
parentf7ccb8dd88c52b2294742c3abb87098ee4076799 (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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 1d869617b6..88dc905a77 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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)