Jamm\Memory\IMemoryStorage::lock_key PHP Method

lock_key() public method

Get exclusive mutex for key. Key will be still accessible to read and write, but another process can exclude dog-pile effect, if before updating the key he will try to get this mutex.
public lock_key ( mixed $key, mixed &$auto_unlocker_variable )
$key mixed
$auto_unlocker_variable mixed - pass empty, just declared variable
    public function lock_key($key, &$auto_unlocker_variable);