IPC::SRLock::Sysv - Set/reset locks using semop and shmop
0.7.$Revision: 183 $
use IPC::SRLock; my $config = { type => q(sysv) }; my $lock_obj = IPC::SRLock->new( $config );
Uses System V semaphores to lock access to a shared memory file
This class defines accessors and mutators for these attributes:
The key the the semaphore. Defaults to 12_244_237
Mode to create the shared memory file. Defaults to 0666
Maximum size of a shared memory segment. Defaults to 65_536
Initialise the object
List the contents of the lock table
Delete a lock from the lock table
Set a lock in the lock table
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>
<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
To install IPC::SRLock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IPC::SRLock
CPAN shell
perl -MCPAN -e shell install IPC::SRLock
For more information on module installation, please visit the detailed CPAN module installation guide.