📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 06:37:16
📂
/ (Root)
/
opt
/
alt
/
ruby31
/
share
/
ri
/
system
/
Thread
📍 /opt/alt/ruby31/share/ri/system/Thread
🔄 Refresh
✏️
Editing: native_thread_id-i.ri
Read Only
U:RDoc::AnyMethod[iI"native_thread_id:ETI"Thread#native_thread_id;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"BReturn the native thread ID which is used by the Ruby thread.;To:RDoc::Markup::BlankLine o; ; [I"PThe ID depends on the OS. (not POSIX thread ID returned by pthread_self(3));To:RDoc::Markup::List: @type:BULLET:@items[ o:RDoc::Markup::ListItem:@label0; [o; ; [I".On Linux it is TID returned by gettid(2).;To;;0; [o; ; [I"JOn macOS it is the system-wide unique integral ID of thread returned ;TI"by pthread_threadid_np(3).;To;;0; [o; ; [I"GOn FreeBSD it is the unique integral ID of the thread returned by ;TI"pthread_getthreadid_np(3).;To;;0; [o; ; [I"FOn Windows it is the thread identifier returned by GetThreadId().;To;;0; [o; ; [I"7On other platforms, it raises NotImplementedError.;T@o; ; [ I"NOTE: ;TI"OIf the thread is not associated yet or already deassociated with a native ;TI"thread, it returns _nil_. ;TI"IIf the Ruby implementation uses M:N thread model, the ID may change ;TI"depending on the timing.;T: @fileI" thread.c;T:0@omit_headings_from_table_of_contents_below0I"'thr.native_thread_id -> integer ;T0[ I"();T@6FI"Thread;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel