Ruby  1.9.3p392(2013-02-22revision39386)
thread_win32.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  thread_win32.h -
4 
5  $Author: kosaki $
6 
7  Copyright (C) 2004-2007 Koichi Sasada
8 
9 **********************************************************************/
10 
11 /* interface */
12 #ifndef RUBY_THREAD_WIN32_H
13 #define RUBY_THREAD_WIN32_H
14 
15 #include <windows.h>
16 
17 # ifdef __CYGWIN__
18 # undef _WIN32
19 # endif
20 
21 WINBASEAPI BOOL WINAPI
22 TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);
23 
24 typedef HANDLE rb_thread_id_t;
25 typedef CRITICAL_SECTION rb_thread_lock_t;
26 typedef struct rb_thread_cond_struct {
27  struct cond_event_entry *next;
28  struct cond_event_entry *prev;
30 
31 typedef struct native_thread_data_struct {
34 
35 typedef struct rb_global_vm_lock_struct {
36  HANDLE lock;
38 
39 #endif /* RUBY_THREAD_WIN32_H */
40 
41