Make Thread#native_thread_id not-implemented if unsupported

Raise `NotImplementedError` on unsupported platforms regardless
the argument consistently.
This commit is contained in:
Nobuyoshi Nakada 2021-06-01 22:27:13 +09:00
parent 6e7e9a80ad
commit 9024c7f1bb
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
4 changed files with 11 additions and 5 deletions

View file

@ -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