class Thread
Public Class Methods
exclusive { ... } → obj
click to toggle source
Sets the global “thread critical'' condition temporarily. Return value is the object returned by the block.
VALUE rb_thread_exclusive( void) { VALUE old_tc = rb_thread_critical; rb_thread_critical = Qtrue; return rb_ensure( rb_yield, Qnil, bsruby_set_thread_critical, old_tc); }