rb_thread_sched_destroy
is not used now at all
This commit is contained in:
parent
127d7a35df
commit
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(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 bool th_has_dedicated_nt(const rb_thread_t *th));
|
||||||
MAYBE_UNUSED(static int waitfd_to_waiting_flag(int wfd_event));
|
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
|
static void
|
||||||
rb_thread_sched_destroy(struct rb_thread_sched *sched)
|
rb_thread_sched_destroy(struct rb_thread_sched *sched)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Do nothing for mutex guard
|
// Do nothing for mutex guard
|
||||||
void
|
void
|
||||||
|
@ -155,6 +155,7 @@ rb_thread_sched_init(struct rb_thread_sched *sched, bool atfork)
|
|||||||
sched->lock = w32_mutex_create();
|
sched->lock = w32_mutex_create();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
// per-ractor
|
// per-ractor
|
||||||
void
|
void
|
||||||
rb_thread_sched_destroy(struct rb_thread_sched *sched)
|
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");
|
if (GVL_DEBUG) fprintf(stderr, "sched destroy\n");
|
||||||
CloseHandle(sched->lock);
|
CloseHandle(sched->lock);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
rb_thread_t *
|
rb_thread_t *
|
||||||
ruby_thread_from_native(void)
|
ruby_thread_from_native(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user