diff options
| author | John Hawthorn <john@hawthorn.email> | 2024-11-14 15:21:38 -0800 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2025-05-15 14:44:26 -0700 |
| commit | d845da05e83a2c2929ef8d4fd829804d44f292d3 (patch) | |
| tree | 27cd2aa21ccf56a19fe6c01725e3cb5b533d0b1a /thread_pthread.c | |
| parent | 55c9c75b4788f6411bfa14f0e7d462d06850f60d (diff) | |
Force reset running time in timer interrupt
Co-authored-by: Ivo Anjo <ivo.anjo@datadoghq.com>
Co-authored-by: Luke Gruber <luke.gru@gmail.com>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12094
Diffstat (limited to 'thread_pthread.c')
| -rw-r--r-- | thread_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 7811d5afbf..fd67eaf735 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -859,7 +859,7 @@ thread_sched_wait_running_turn(struct rb_thread_sched *sched, rb_thread_t *th, b RUBY_DEBUG_LOG("(nt) wakeup %s", sched->running == th ? "success" : "failed"); if (th == sched->running) { - rb_ractor_thread_switch(th->ractor, th); + rb_ractor_thread_switch(th->ractor, th, false); } } else { |
