View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Michael Kulakov > Proc-Application-0.01 > Proc::Lock::File

Download:
Proc-Application-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Proc::Lock::File - lock interface module

SYNOPSIS ^

 use Proc::Lock::File;
 my $lock = new Proc::Lock::File ( Directory => '/var/locks',
                                   ProcessName => 'locker' );
 $lock->set () || die "already locked";
 die "locked" if $lock->isSet ();
 $lock->unset ();

DESCRIPTION ^

 Generic lock module. You must subclass this class and overwrite set, clear, isSet and new (possible) for do your work

new

Construct new file lock object. Add Directory parameter to parent constructor.

syntax highlighting: