Returns true if this lock is currently held by some thread.
# File thread.rb, line 70 def locked? @locked end
<code/>
<pre/>
<code/>and<pre/>for code samples.