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" RUBY_SYMBOL_EXPORT_BEGIN rb_nativethread_id_t rb_nativethread_self()
void rb_nativethread_lock_destroy(rb_nativethread_lock_t *lock)
void rb_nativethread_lock_unlock(rb_nativethread_lock_t *lock)
#define RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_BEGIN
void rb_nativethread_lock_initialize(rb_nativethread_lock_t *lock)
void rb_nativethread_lock_lock(rb_nativethread_lock_t *lock)