зеркало из https://github.com/github/ruby.git
`rb_thread_sched_destroy` is not used now at all
This commit is contained in:
Родитель
127d7a35df
Коммит
e2a9b87126
1
thread.c
1
thread.c
|
@ -259,7 +259,6 @@ timeout_prepare(rb_hrtime_t **to, rb_hrtime_t *rel, rb_hrtime_t *end,
|
|||
}
|
||||
|
||||
MAYBE_UNUSED(NOINLINE(static int thread_start_func_2(rb_thread_t *th, VALUE *stack_start)));
|
||||
MAYBE_UNUSED(static void rb_thread_sched_destroy(struct rb_thread_sched *sched));
|
||||
MAYBE_UNUSED(static bool th_has_dedicated_nt(const rb_thread_t *th));
|
||||
MAYBE_UNUSED(static int waitfd_to_waiting_flag(int wfd_event));
|
||||
|
||||
|
|
|
@ -46,10 +46,12 @@ rb_thread_sched_init(struct rb_thread_sched *sched, bool atfork)
|
|||
{
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
rb_thread_sched_destroy(struct rb_thread_sched *sched)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
// Do nothing for mutex guard
|
||||
void
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче