private Method

MonitorMixin.mon_check_owner

Throw a ThreadError exception if the current thread does’t own the monitor

Source Code

# File monitor.rb, line 276
def mon_check_owner
  if @mon_owner != Thread.current
    raise ThreadError, "current thread not owner"
  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.