= private = protected
group()
Returns the ThreadGroup which contains the given thread, or returns nil if thr is not a member of any group.
Thread.main.group #=> #<ThreadGroup:0x4029d914>
VALUE rb_thread_group(VALUE thread) { VALUE group = rb_thread_ptr(thread)->thgroup; return group == 0 ? Qnil : group; }