locking methods.
# File sync.rb, line 131 def sync_try_lock(mode = EX) return unlock if sync_mode == UN Thread.critical = true ret = sync_try_lock_sub(sync_mode) Thread.critical = false ret end
<code/>
<pre/>
<code/>and<pre/>for code samples.