method

synchronize

v2_4_6 - Show latest stable - Class: Thread::Mutex
synchronize()
public

Obtains a lock, runs the block, and releases the lock when the block completes. See the example under Mutex.