instance method
Thread::Mutex#unlock
() -> self
mutex.lock → self
thread_sync.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/thread_sync.rb, line 118
def unlock
Primitive.rb_mut_unlock
end
Attempts to grab the lock and waits if it isn’t available. Raises ThreadError if mutex was locked by the current thread.