summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2022-01-16 00:37:54 +0900
committerYuta Saito <kateinoigakukun@gmail.com>2022-01-19 11:19:06 +0900
commit420622b5a793186dfa533e7702913fd5e4764e0f (patch)
tree3b56e4ef9ff26891aaa92aadd9ee9561ef50d76e /thread.c
parentd6d52a7d049fd802b37d0f594629bad2cdc6b8c2 (diff)
[wasm] add no thread variant for freestanding environment
This implementation does nothing around preemptive context switching because there is no native thread.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5407
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 52ecf124bd..95daed6668 100644
--- a/thread.c
+++ b/thread.c
@@ -340,7 +340,7 @@ rb_thread_s_debug_set(VALUE self, VALUE val)
# define PRI_THREAD_ID "p"
#endif
-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)));
void ruby_sigchld_handler(rb_vm_t *); /* signal.c */
static void