mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Make Thread#native_thread_id
not-implemented if unsupported
Raise `NotImplementedError` on unsupported platforms regardless the argument consistently.
This commit is contained in:
parent
6e7e9a80ad
commit
9024c7f1bb
4 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue