Ruby 3.2.3p157 (2024-01-18 revision 52bb2ac0a6971d0391efa2275f7a66bff319087c)
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
12 void *thread_id; // NULL
13};
14
17
18RUBY_EXTERN struct rb_execution_context_struct *ruby_current_ec;
19
20#endif /* RUBY_THREAD_NONE_H */
#define RUBY_EXTERN
Declaration of externally visible global variables.
Definition dllexport.h:47