Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef RUBY_THREAD_WIN32_H
00013 #define RUBY_THREAD_WIN32_H
00014
00015 #include <windows.h>
00016
00017 # ifdef __CYGWIN__
00018 # undef _WIN32
00019 # endif
00020
00021 WINBASEAPI BOOL WINAPI
00022 TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);
00023
00024 typedef HANDLE rb_thread_id_t;
00025 typedef CRITICAL_SECTION rb_thread_lock_t;
00026 typedef struct rb_thread_cond_struct rb_thread_cond_t;
00027
00028 typedef struct native_thread_data_struct {
00029 HANDLE interrupt_event;
00030 } native_thread_data_t;
00031
00032 #endif
00033
00034