2022-01-15 18:37:54 +03:00
|
|
|
#ifndef RUBY_THREAD_NONE_H
|
|
|
|
#define RUBY_THREAD_NONE_H
|
|
|
|
|
|
|
|
#define RB_NATIVETHREAD_LOCK_INIT (void)(0)
|
|
|
|
#define RB_NATIVETHREAD_COND_INIT (void)(0)
|
|
|
|
|
|
|
|
// no-thread impl doesn't use TLS but define this to avoid using tls key
|
|
|
|
// based implementation in vm.c
|
|
|
|
#define RB_THREAD_LOCAL_SPECIFIER
|
|
|
|
|
2022-04-22 15:19:03 +03:00
|
|
|
struct rb_native_thread {
|
|
|
|
void *thread_id; // NULL
|
|
|
|
};
|
2022-01-15 18:37:54 +03:00
|
|
|
|
2022-04-22 15:19:03 +03:00
|
|
|
struct rb_thread_sched_item {};
|
2022-04-16 21:40:23 +03:00
|
|
|
struct rb_thread_sched {};
|
2022-01-15 18:37:54 +03:00
|
|
|
|
|
|
|
RUBY_EXTERN struct rb_execution_context_struct *ruby_current_ec;
|
|
|
|
|
|
|
|
#endif /* RUBY_THREAD_NONE_H */
|