Method: Mutex#lock
- Defined in:
- thread_sync.c
permalink #lock ⇒ self
Attempts to grab the lock and waits if it isn’t available. Raises ThreadError
if mutex
was locked by the current thread.
401 402 403 404 405 |
# File 'thread_sync.c', line 401
VALUE
rb_mutex_lock(VALUE self)
{
return do_mutex_lock(self, 1);
}
|