diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-03-22 18:20:13 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-03-22 18:20:13 +0900 |
commit | 127d7a35df10ee2bc99f44b888972b2c5361d84f (patch) | |
tree | 6c3bcc344d536c0a0e7c7479f731eab7c359a104 /thread.c | |
parent | 055613fd868a8c94e43893f8c58a00cdd2a81f6d (diff) |
Some functions are not used when `THREAD_MODEL=none`
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -146,7 +146,7 @@ static int rb_threadptr_pending_interrupt_empty_p(const rb_thread_t *th); static const char *thread_status_name(rb_thread_t *th, int detail); static int hrtime_update_expire(rb_hrtime_t *, const rb_hrtime_t); NORETURN(static void async_bug_fd(const char *mesg, int errno_arg, int fd)); -static int consume_communication_pipe(int fd); +MAYBE_UNUSED(static int consume_communication_pipe(int fd)); static volatile int system_working = 1; static rb_internal_thread_specific_key_t specific_key_count; @@ -259,6 +259,9 @@ 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)); #include THREAD_IMPL_SRC |