Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# thread_pthread.h

Go to the documentation of this file.

    00001 /**********************************************************************
    00002
    00003   thread_pthread.h -
    00004
    00005   $Author: naruse $
    00006
    00007   Copyright (C) 2004-2007 Koichi Sasada
    00008
    00009 **********************************************************************/
    00010
    00011 #ifndef RUBY_THREAD_PTHREAD_H
    00012 #define RUBY_THREAD_PTHREAD_H
    00013
    00014 #include <pthread.h>
    00015 #ifdef HAVE_PTHREAD_NP_H
    00016 #include <pthread_np.h>
    00017 #endif
    00018 typedef pthread_t rb_thread_id_t;
    00019 typedef pthread_mutex_t rb_thread_lock_t;
    00020 typedef pthread_cond_t rb_thread_cond_t;
    00021
    00022 typedef struct native_thread_data_struct {
    00023     void *signal_thread_list;
    00024     pthread_cond_t sleep_cond;
    00025 } native_thread_data_t;
    00026
    00027 #endif /* RUBY_THREAD_PTHREAD_H */
    00028