summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-01 22:27:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-01 22:27:13 +0900
commit9024c7f1bb3ea432a2b52e7c701b06f83aafd4d5 (patch)
tree0b52d7bc67fde0fcfd4fb30bd2f91c121b0e7b49 /thread_win32.c
parent6e7e9a80adfe69e6e6d20e01997b97a5c24cd33e (diff)
Make `Thread#native_thread_id` not-implemented if unsupported
Raise `NotImplementedError` on unsupported platforms regardless the argument consistently.
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index fc31c09ec3..84b8776418 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -842,6 +842,7 @@ native_thread_native_thread_id(rb_thread_t *th)
if (tid == 0) rb_sys_fail("GetThreadId");
return ULONG2NUM(tid);
}
+#define USE_NATIVE_THREAD_NATIVE_THREAD_ID 1
#if USE_MJIT
static unsigned long __stdcall