method
mu_try_lock
mu_try_lock()
public
Hide source
# File lib/mutex_m.rb, line 77 def mu_try_lock result = false Thread.critical = true unless @mu_locked @mu_locked = true result = true end Thread.critical = false result end