diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:02:05 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:02:05 +0000 |
commit | 0dc342de848a642ecce8db697b8fecd83a63e117 (patch) | |
tree | 2b7ed4724aff1f86073e4740134bda9c4aac1a39 /trunk/thread_win32.h | |
parent | ef70cf7138ab8034b5b806f466e4b484b24f0f88 (diff) |
added tag v1_9_0_4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_0_4@18845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'trunk/thread_win32.h')
-rw-r--r-- | trunk/thread_win32.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/trunk/thread_win32.h b/trunk/thread_win32.h new file mode 100644 index 0000000000..ec2930df12 --- /dev/null +++ b/trunk/thread_win32.h @@ -0,0 +1,33 @@ +/********************************************************************** + + thread_win32.h - + + $Author$ + + Copyright (C) 2004-2007 Koichi Sasada + +**********************************************************************/ + +/* interface */ +#ifndef RUBY_THREAD_WIN32_H +#define RUBY_THREAD_WIN32_H + +#include <windows.h> + +# ifdef __CYGWIN__ +# undef _WIN32 +# endif + +WINBASEAPI BOOL WINAPI +TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection); + +typedef HANDLE rb_thread_id_t; +typedef CRITICAL_SECTION rb_thread_lock_t; +typedef struct rb_thread_cond_struct rb_thread_cond_t; + +typedef struct native_thread_data_struct { + HANDLE interrupt_event; +} native_thread_data_t; + +#endif /* RUBY_THREAD_WIN32_H */ + |