1 #ifndef RUBY_THREAD_NONE_H
2 #define RUBY_THREAD_NONE_H
4 #define RB_NATIVETHREAD_LOCK_INIT (void)(0)
5 #define RB_NATIVETHREAD_COND_INIT (void)(0)
7 // no-thread impl doesn't use TLS but define this to avoid using tls key
8 // based implementation in vm.c
9 #define RB_THREAD_LOCAL_SPECIFIER
11 struct rb_native_thread
{
12 void *thread_id
; // NULL
15 struct rb_thread_sched_item
{};
16 struct rb_thread_sched
{};
18 RUBY_EXTERN
struct rb_execution_context_struct
*ruby_current_ec
;
19 NOINLINE(struct rb_execution_context_struct
*rb_current_ec_noinline(void)); // for assertions
21 #endif /* RUBY_THREAD_NONE_H */