summaryrefslogtreecommitdiff
path: root/trunk/thread_win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/thread_win32.h')
-rw-r--r--trunk/thread_win32.h33
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 */
+