summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2023-03-31 17:57:25 +0900
committerKoichi Sasada <ko1@atdot.net>2023-03-31 18:50:10 +0900
commitf803bcfc872b31faeb1b894e315175e410024cd5 (patch)
treec20ae62c10b317b0c69429720912078fa17b17e1 /thread_win32.c
parent4c0f82eb5b13e436a93497eaf23d965efa35a39e (diff)
downloadruby-f803bcfc872b31faeb1b894e315175e410024cd5.tar.gz
pass `th` to `thread_sched_to_waiting()`
for future extension
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);
}