lib/ext_monitor.rb
def mon_synchronize(&b)
    mon_data = defined?(@mon_data) ? @mon_data : use_monitor_core
    mon_data.enter
    begin
      yield
    ensure
      mon_data.exit
    end
  end
#
# Enters exclusive section and executes the block.  Leaves the exclusive
# section automatically when the block exits.  See example under
# +MonitorMixin+.
#
Enters exclusive section and executes the block.  Leaves the exclusive
section automatically when the block exits.  See example under
+MonitorMixin+.
Enters exclusive section and executes the block . Leaves the exclusive section automatically when the block exits . See example under + MonitorMixin + .
def mon_synchronize(&b)
    mon_data = defined?(@mon_data) ? @mon_data : use_monitor_core
    mon_data.enter
    begin
      yield
    ensure
      mon_data.exit
    end
  end
def mon_synchronize ( & b ) mon_data = defined? ( @mon_data ) ? @mon_data : use_monitor_core mon_data . enter begin yield ensure mon_data . exit end end
Enters exclusive section and executes the block.
Enters exclusive section and executes the block .
b