End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
ThreadGroup#enclosed?
thgrp.enclosed? → true or false
thread.c
View on GitHub ↗
static VALUE
thgroup_enclosed_p(VALUE group)
{
struct thgroup *data;
TypedData_Get_Struct(group, struct thgroup, &thgroup_data_type, data);
if (data->enclosed)
return Qtrue;
return Qfalse;
}
Returns true if the thgrp is enclosed. See also ThreadGroup#enclose.