class method
Thread.ignore_deadlock
Thread.ignore_deadlock → true or false
thread.c
View on GitHub ↗
static VALUE
rb_thread_s_ignore_deadlock(VALUE _)
{
return RBOOL(GET_THREAD()->vm->thread_ignore_deadlock);
}
Returns the status of the global “ignore deadlock” condition. The default is false, so that deadlock conditions are not ignored.
See also ::ignore_deadlock=.
Ruby version changes
-
3.0
-
Thread.ignore_deadlockaccessor has been added for disabling the default deadlock detection, allowing the use of signal handlers to break deadlock. [Bug #13768]
-