Lock
Lock.
The Lock can be used to lock a non-threadsafe objects. Locks are local, and cannot be transfered remote localities.
Public Functions
lock
Acquire the lock.
unlock
Release the lock.