YottaDB::Lock - run sections under a M-lock
use YottaDB::Lock; y_locked { ... code ... } [timeout,] mvar [,sub1 [,sub2 [,...]]]
This module allows you to run a piece of code under a M-lock.
Execute the given BLOCK while holding the lock mvar... The lock is released when the block exits. Timeout is in seconds.
YottaDB
Stefan Traby <stefan@hello-penguin.com>
To install YottaDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YottaDB
CPAN shell
perl -MCPAN -e shell install YottaDB
For more information on module installation, please visit the detailed CPAN module installation guide.