public Method

MonitorMixin.mon_synchronize() { || ... }

Enters exclusive section and executes the block. Leaves the exclusive section automatically when the block exits. See example under MonitorMixin.

Source Code

# File monitor.rb, line 239
def mon_synchronize
  mon_enter
  begin
    yield
  ensure
    mon_exit
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.