* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / thread_pthread.h
blob04254d7312286546586fcb0645a6f90f24aeb9bf
1 /**********************************************************************
3 thread_pthread.h -
5 $Author$
7 Copyright (C) 2004-2007 Koichi Sasada
9 **********************************************************************/
11 #ifndef RUBY_THREAD_PTHREAD_H
12 #define RUBY_THREAD_PTHREAD_H
14 #include <pthread.h>
15 typedef pthread_t rb_thread_id_t;
16 typedef pthread_mutex_t rb_thread_lock_t;
17 typedef pthread_cond_t rb_thread_cond_t;
19 typedef struct native_thread_data_struct {
20 void *signal_thread_list;
21 pthread_cond_t sleep_cond;
22 } native_thread_data_t;
24 #endif /* RUBY_THREAD_PTHREAD_H */