12 #ifndef RUBY_THREAD_NATIVE_H
13 #define RUBY_THREAD_NATIVE_H 1
28 typedef HANDLE rb_nativethread_id_t;
30 typedef union rb_thread_lock_union {
32 CRITICAL_SECTION crit;
33 } rb_nativethread_lock_t;
35 #elif defined(HAVE_PTHREAD_H)
37 typedef pthread_t rb_nativethread_id_t;
38 typedef pthread_mutex_t rb_nativethread_lock_t;
41 #error "unsupported thread type"