* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / thread_win32.h
blobec2930df12c378d81e0f84af818f2bd56a651c40
1 /**********************************************************************
3 thread_win32.h -
5 $Author$
7 Copyright (C) 2004-2007 Koichi Sasada
9 **********************************************************************/
11 /* interface */
12 #ifndef RUBY_THREAD_WIN32_H
13 #define RUBY_THREAD_WIN32_H
15 #include <windows.h>
17 # ifdef __CYGWIN__
18 # undef _WIN32
19 # endif
21 WINBASEAPI BOOL WINAPI
22 TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);
24 typedef HANDLE rb_thread_id_t;
25 typedef CRITICAL_SECTION rb_thread_lock_t;
26 typedef struct rb_thread_cond_struct rb_thread_cond_t;
28 typedef struct native_thread_data_struct {
29 HANDLE interrupt_event;
30 } native_thread_data_t;
32 #endif /* RUBY_THREAD_WIN32_H */