diff options
author | Koichi Sasada <ko1@atdot.net> | 2023-03-31 17:57:25 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2023-03-31 18:50:10 +0900 |
commit | f803bcfc872b31faeb1b894e315175e410024cd5 (patch) | |
tree | c20ae62c10b317b0c69429720912078fa17b17e1 /thread_win32.c | |
parent | 4c0f82eb5b13e436a93497eaf23d965efa35a39e (diff) |
pass `th` to `thread_sched_to_waiting()`
for future extension
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7639
Diffstat (limited to 'thread_win32.c')
-rw-r--r-- | thread_win32.c | 4 |
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); } |