= private = protected
alive?()
Returns true if thr is running or sleeping.
thr = Thread.new { } thr.join #=> #<Thread:0x401b3fb0 dead> Thread.current.alive? #=> true thr.alive? #=> false
See also #stop? and #status.
static VALUE rb_thread_alive_p(VALUE thread) { if (rb_threadptr_dead(rb_thread_ptr(thread))) { return Qfalse; } else { return Qtrue; } }