= private = protected
mon_try_enter()
Attempts to enter exclusive section. Returns false if lock fails.
# File lib/monitor.rb, line 167 def mon_try_enter if @mon_owner != Thread.current unless @mon_mutex.try_lock return false end @mon_owner = Thread.current end @mon_count += 1 return true end