From 9024c7f1bb3ea432a2b52e7c701b06f83aafd4d5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 1 Jun 2021 22:27:13 +0900 Subject: Make `Thread#native_thread_id` not-implemented if unsupported Raise `NotImplementedError` on unsupported platforms regardless the argument consistently. --- thread_win32.c | 1 + 1 file changed, 1 insertion(+) (limited to 'thread_win32.c') 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 -- cgit v1.2.3