diff options
Diffstat (limited to 'thread_win32.h')
-rw-r--r-- | thread_win32.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/thread_win32.h b/thread_win32.h index 12aef02728..23cd71fcfe 100644 --- a/thread_win32.h +++ b/thread_win32.h @@ -21,18 +21,13 @@ WINBASEAPI BOOL WINAPI TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection); -struct rb_thread_cond_struct { - struct cond_event_entry *next; - struct cond_event_entry *prev; -}; - struct rb_native_thread { HANDLE thread_id; HANDLE interrupt_event; }; struct rb_thread_sched_item { - char dmy; + void *vm_stack; }; struct rb_thread_sched { @@ -44,11 +39,8 @@ typedef DWORD native_tls_key_t; // TLS index static inline void * native_tls_get(native_tls_key_t key) { - void *ptr = TlsGetValue(key); - if (UNLIKELY(ptr == NULL)) { - rb_bug("TlsGetValue() returns NULL"); - } - return ptr; + // return value should be checked by caller. + return TlsGetValue(key); } static inline void |