diff options
author | KJ Tsanaktsidis <ktsanaktsidis@zendesk.com> | 2023-05-26 12:02:30 +1000 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-05-26 14:51:23 +0900 |
commit | 54a74c42033e42869e69e7dc9e67efa1faf225be (patch) | |
tree | 709fec3c20fad2a7d644ca9a6fb03dc49972b155 /thread_win32.h | |
parent | 8c4da473dec7f733254aad4816857536e85f93f3 (diff) |
Move rb_thread_cond_struct definition into thread_native.h
On Win32, currently, rb_nativethread_cond_t is an incomplete type
because it's a typedef for `struct rb_thread_cond_struct`. That means
you can't actually allocate a rb_nativethread_cond_t unless you also
include THREAD_IMPL_H (since its defined in thread_win32.h)
(alternatively, including vm_core.h also works).
Move the definition of rb_thread_cond_struct into thread_native.h to
alleviate this.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7865
Diffstat (limited to 'thread_win32.h')
-rw-r--r-- | thread_win32.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/thread_win32.h b/thread_win32.h index f00f3b2056..0dfe9d46de 100644 --- a/thread_win32.h +++ b/thread_win32.h @@ -21,11 +21,6 @@ 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; |