summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 77953d3245..b1aab910ef 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -134,7 +134,7 @@ thread_sched_to_running(struct rb_thread_sched *sched, rb_thread_t *th)
#define thread_sched_to_dead thread_sched_to_waiting
static void
-thread_sched_to_waiting(struct rb_thread_sched *sched)
+thread_sched_to_waiting(struct rb_thread_sched *sched, rb_thread_t *th)
{
ReleaseMutex(sched->lock);
}
@@ -142,7 +142,7 @@ thread_sched_to_waiting(struct rb_thread_sched *sched)
static void
thread_sched_yield(struct rb_thread_sched *sched, rb_thread_t *th)
{
- thread_sched_to_waiting(sched);
+ thread_sched_to_waiting(sched, th);
native_thread_yield();
thread_sched_to_running(sched, th);
}