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