pass th to thread_sched_to_waiting()

for future extension
This commit is contained in:
Koichi Sasada 2023-03-31 17:57:25 +09:00
parent 4c0f82eb5b
commit f803bcfc87
Notes: git 2023-03-31 09:50:40 +00:00
4 changed files with 15 additions and 15 deletions

View file

@ -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);
}