Ruby 1.8.7 Reference Manual > All Libraries > library thread > class Mutex > unlock
unlock -> self | nil
mutex のロックを解放します。mutex のロック待ちになっていたスレッドの実行は再開されます。
例:
m = Mutex.new begin m.lock # critical part ensure m.unlock end