method
lock
v2_6_3 -
Show latest stable
- Class:
Mutex
lock()public
Attempts to grab the lock and waits if it isn’t available. Raises ThreadError if mutex was locked by the current thread.
lock()Attempts to grab the lock and waits if it isn’t available. Raises ThreadError if mutex was locked by the current thread.