summaryrefslogtreecommitdiff
path: root/thread_none.h
blob: eac2635ca73eb2d76cbd495a82548bf8fd5497ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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

typedef struct native_thread_data_struct {} native_thread_data_t;

typedef struct rb_global_vm_lock_struct {} rb_global_vm_lock_t;

RUBY_EXTERN struct rb_execution_context_struct *ruby_current_ec;

#endif /* RUBY_THREAD_NONE_H */