rb_thread_sched_destroy is not used now at all

This commit is contained in:
Nobuyoshi Nakada 2024-03-22 18:53:44 +09:00
parent 127d7a35df
commit e2a9b87126
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
3 changed files with 4 additions and 1 deletions

View file

@ -155,6 +155,7 @@ rb_thread_sched_init(struct rb_thread_sched *sched, bool atfork)
sched->lock = w32_mutex_create();
}
#if 0
// per-ractor
void
rb_thread_sched_destroy(struct rb_thread_sched *sched)
@ -162,6 +163,7 @@ rb_thread_sched_destroy(struct rb_thread_sched *sched)
if (GVL_DEBUG) fprintf(stderr, "sched destroy\n");
CloseHandle(sched->lock);
}
#endif
rb_thread_t *
ruby_thread_from_native(void)