This method is deprecated or moved on the latest stable version.
The last existing version (v1_8_7_330) is shown here.
exclusive_unlock()
public
If the mutex is locked, unlocks the mutex, wakes one waiting thread, and
yields in a critical section.
# File lib/thread.rb, line 140
def exclusive_unlock
return unless @locked
Thread.exclusive do
@locked = false
begin
t = @waiting.shift
t.wakeup if t
rescue ThreadError
retry
end
yield
end
self
end