
IPC::SRLock::Fcntl - Set/reset locks using fcntl

0.7.$Revision: 183 $

use IPC::SRLock;
my $config = { tempdir => q(path_to_tmp_directory), type => q(fcntl) };
my $lock_obj = IPC::SRLock->new( $config );

Uses Fcntl to lock access to a disk based file which is read/written by Data::Serializer. This is the default type for IPC::SRLock.

This class defines accessors and mutators for these attributes:
Path to the file used by fcntl
File mode to use when creating the lock table file. Defaults to 0666
Path to the lock table file
Path to the directory where the lock files reside. Defaults to File::Spec->tmpdir
The umask to set when creating the lock table file. Defaults to 0

Initialise the object
List the contents of the lock table
Read the file containing the lock table from disk
Release the exclusive flock on the lock file
Delete a lock from the lock table
Set a lock in the lock table
Write the lock table to the disk file

None


There are no known incompatibilities in this module

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Peter Flanigan, <Support at RoxSoft.co.uk>

Copyright (c) 2008 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE