thread_native.h

Go to the documentation of this file.
00001 #ifndef RUBY_THREAD_NATIVE_H
00002 #define RUBY_THREAD_NATIVE_H
00003 
00004 #if   defined(_WIN32)
00005 #include "thread_win32.h"
00006 #elif defined(HAVE_PTHREAD_H)
00007 #include "thread_pthread.h"
00008 #else
00009 #error "unsupported thread type"
00010 #endif
00011 
00012 RUBY_SYMBOL_EXPORT_BEGIN
00013 
00014 rb_nativethread_id_t rb_nativethread_self();
00015 
00016 void rb_nativethread_lock_initialize(rb_nativethread_lock_t *lock);
00017 void rb_nativethread_lock_destroy(rb_nativethread_lock_t *lock);
00018 void rb_nativethread_lock_lock(rb_nativethread_lock_t *lock);
00019 void rb_nativethread_lock_unlock(rb_nativethread_lock_t *lock);
00020 
00021 RUBY_SYMBOL_EXPORT_END
00022 
00023 #endif
00024 

Generated on 19 Jul 2016 for Ruby by  doxygen 1.4.7