Genezzo::Contrib::Clustered::GLock::GLock - Generic locking for Genezzo
my $gtxLock = GTXLock->new(); $gtxLock->lock(lock => $bnum, shared => 1); $gtxLock->unlockAll();
Retains hash of all locks held by transaction.
Creates GTXLock
Locks lock with name NAME. Shared if SHARED=1, otherwise Exclusive (default). Uses a blocking lock call. If lock is currently held Shared promotes to Exclusive. Adds lock to hash of all locks held by object.
Unlocks all locks held by object.
Eric Rollins, rollins@acm.org
Copyright (c) 2005 Eric Rollins. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Address bug reports and comments to rollins@acm.org
For more information, please visit the Genezzo homepage at http://www.genezzo.com
To install Genezzo::Contrib::Clustered::Clustered, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Genezzo::Contrib::Clustered::Clustered
CPAN shell
perl -MCPAN -e shell install Genezzo::Contrib::Clustered::Clustered
For more information on module installation, please visit the detailed CPAN module installation guide.