summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index da335e88ff..668d94b6c7 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -106,6 +106,15 @@ gvl_release(rb_vm_t *vm)
}
static void
+gvl_yield(rb_vm_t *vm, rb_thread_t *th)
+{
+ gvl_release(th->vm);
+ native_thread_yield();
+ gvl_acquire(vm, th);
+}
+
+
+static void
gvl_atfork(rb_vm_t *vm)
{
rb_bug("gvl_atfork() is called on win32");