mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
pass th
to thread_sched_to_waiting()
for future extension
This commit is contained in:
parent
4c0f82eb5b
commit
f803bcfc87
Notes:
git
2023-03-31 09:50:40 +00:00
4 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue