summaryrefslogtreecommitdiff
path: root/thread_win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread_win32.h')
-rw-r--r--thread_win32.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/thread_win32.h b/thread_win32.h
index 5a88fb40f8..af692d98ae 100644
--- a/thread_win32.h
+++ b/thread_win32.h
@@ -24,12 +24,19 @@ 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;
int native_mutex_lock(rb_thread_lock_t *);
int native_mutex_unlock(rb_thread_lock_t *);
int native_mutex_trylock(rb_thread_lock_t *);
void native_mutex_initialize(rb_thread_lock_t *);
+void native_cond_signal(rb_thread_cond_t *cond);
+void native_cond_broadcast(rb_thread_cond_t *cond);
+void native_cond_wait(rb_thread_cond_t *cond, rb_thread_lock_t *mutex);
+void native_cond_initialize(rb_thread_cond_t *cond);
+void native_cond_destroy(rb_thread_cond_t *cond);
+
typedef struct native_thread_data_struct {
HANDLE interrupt_event;
} native_thread_data_t;