summaryrefslogtreecommitdiff
path: root/thread_win32.h
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-28 07:02:07 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-28 07:02:07 (GMT)
commit9b3aade1b6e848e22114e987e7f1d07c859e37c1 (patch)
tree4cf105be239e8a3c97871e034a0fe4045a12b592 /thread_win32.h
parent99c8c71243dafbbe29e12cea325d65b180687e8e (diff)
* thread_win32.[ch]: moved definitions of cond_every_entry and
rb_thread_cond_struct from .c to .h because rb_thread_cond_struct is used in vm_core.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.h')
-rw-r--r--thread_win32.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/thread_win32.h b/thread_win32.h
index ec2930d..cc982a9 100644
--- a/thread_win32.h
+++ b/thread_win32.h
@@ -25,6 +25,16 @@ typedef HANDLE rb_thread_id_t;
typedef CRITICAL_SECTION rb_thread_lock_t;
typedef struct rb_thread_cond_struct rb_thread_cond_t;
+struct cond_event_entry {
+ struct cond_event_entry* next;
+ HANDLE event;
+};
+
+struct rb_thread_cond_struct {
+ struct cond_event_entry *next;
+ struct cond_event_entry *last;
+};
+
typedef struct native_thread_data_struct {
HANDLE interrupt_event;
} native_thread_data_t;