Ruby 2.1.5p273(2014-11-13revision48405)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

thread_native.h
Go to the documentation of this file.
1 #ifndef RUBY_THREAD_NATIVE_H
2 #define RUBY_THREAD_NATIVE_H
3
4 #if defined(_WIN32)
5 #include "thread_win32.h"
6 #elif defined(HAVE_PTHREAD_H)
7 #include "thread_pthread.h"
8 #else
9 #error "unsupported thread type"
10 #endif
11
12 RUBY_SYMBOL_EXPORT_BEGIN
13
14 rb_nativethread_id_t rb_nativethread_self();
15
16 void rb_nativethread_lock_initialize(rb_nativethread_lock_t *lock);
17 void rb_nativethread_lock_destroy(rb_nativethread_lock_t *lock);
18 void rb_nativethread_lock_lock(rb_nativethread_lock_t *lock);
19 void rb_nativethread_lock_unlock(rb_nativethread_lock_t *lock);
20
21 RUBY_SYMBOL_EXPORT_END
22
23 #endif
rb_nativethread_self
RUBY_SYMBOL_EXPORT_BEGIN rb_nativethread_id_t rb_nativethread_self()
rb_nativethread_lock_t
pthread_mutex_t rb_nativethread_lock_t
Definition: thread_pthread.h:19
thread_pthread.h
thread_win32.h
rb_nativethread_lock_destroy
void rb_nativethread_lock_destroy(rb_nativethread_lock_t *lock)
Definition: thread.c:286
rb_nativethread_lock_unlock
void rb_nativethread_lock_unlock(rb_nativethread_lock_t *lock)
Definition: thread.c:298
rb_nativethread_id_t
pthread_t rb_nativethread_id_t
Definition: thread_pthread.h:18
RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:39
RUBY_SYMBOL_EXPORT_BEGIN
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:38
rb_nativethread_lock_initialize
void rb_nativethread_lock_initialize(rb_nativethread_lock_t *lock)
Definition: thread.c:280
rb_nativethread_lock_lock
void rb_nativethread_lock_lock(rb_nativethread_lock_t *lock)
Definition: thread.c:292