diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-06-01 22:27:13 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-06-01 22:27:13 +0900 |
commit | 9024c7f1bb3ea432a2b52e7c701b06f83aafd4d5 (patch) | |
tree | 0b52d7bc67fde0fcfd4fb30bd2f91c121b0e7b49 /thread_win32.c | |
parent | 6e7e9a80adfe69e6e6d20e01997b97a5c24cd33e (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.c | 1 |
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 |