NAME

YottaDB::Lock - run sections under a M-lock

SYNOPSIS

use YottaDB::Lock;

y_locked {
    ... code ...
} [timeout,] mvar [,sub1 [,sub2 [,...]]]

DESCRIPTION

This module allows you to run a piece of code under a M-lock.

y_locked BLOCK [timeout,] mvar [,sub1 [,sub2 [,...]]]

Execute the given BLOCK while holding the lock mvar... The lock is released when the block exits. Timeout is in seconds.

SEE ALSO

YottaDB

AUTHOR

Stefan Traby <stefan@hello-penguin.com>