Ruby: thread_none.h Source File

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

thread_none.h
1#ifndef RUBY_THREAD_NONE_H
2#define RUBY_THREAD_NONE_H
3
4#define RB_NATIVETHREAD_LOCK_INIT (void)(0)
5#define RB_NATIVETHREAD_COND_INIT (void)(0)
6
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
10
11 struct rb_native_thread {
12 void *thread_id; // NULL
13};
14
15 struct rb_thread_sched_item {};
16 struct rb_thread_sched {};
17
18 RUBY_EXTERN struct rb_execution_context_struct *ruby_current_ec;
19
20#endif /* RUBY_THREAD_NONE_H */
RUBY_EXTERN
#define RUBY_EXTERN
Declaration of externally visible global variables.
Definition dllexport.h:47
rb_execution_context_struct
Definition vm_core.h:899
rb_native_thread
Definition thread_none.h:11
rb_thread_sched_item
Definition thread_none.h:15
rb_thread_sched
Definition thread_none.h:16