File: thread_pthread.h

package info (click to toggle)
ruby1.9 1.9.0.2-9lenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 36,284 kB
  • ctags: 54,135
  • sloc: ruby: 280,863; ansic: 261,105; yacc: 16,427; sh: 4,148; lisp: 1,732; tcl: 949; pascal: 639; makefile: 468; sed: 155; xml: 64; perl: 62; python: 47; awk: 36; asm: 25
file content (24 lines) | stat: -rw-r--r-- 592 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**********************************************************************

  thread_pthread.h -

  $Author: nobu $

  Copyright (C) 2004-2007 Koichi Sasada

**********************************************************************/

#ifndef RUBY_THREAD_PTHREAD_H
#define RUBY_THREAD_PTHREAD_H

#include <pthread.h>
typedef pthread_t rb_thread_id_t;
typedef pthread_mutex_t rb_thread_lock_t;
typedef pthread_cond_t rb_thread_cond_t;

typedef struct native_thread_data_struct {
    void *signal_thread_list;
    pthread_cond_t sleep_cond;
} native_thread_data_t;

#endif /* RUBY_THREAD_PTHREAD_H */