1 /**********************************************************************
7 Copyright (C) 2004-2007 Koichi Sasada
9 **********************************************************************/
12 #ifndef RUBY_THREAD_WIN32_H
13 #define RUBY_THREAD_WIN32_H
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 */