pub unsafe extern "C" fn ruby_native_thread_p() -> c_intExpand description
Queries if the thread which calls this function is a ruby’s thread.
“Ruby’s” in this context is a thread created using one of our APIs like
rb_thread_create. There are distinctions between ruby’s and other
threads. For instance calling ruby methods are allowed only from inside of
a ruby’s thread.
§@retval 1 The current thread is a Ruby’s thread. @retval 0 The current thread is a random thread from outside of Ruby.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3