NAME

DLM::Client::Simple - Simplified interface to DLM::Client

VERSION

Version 0.01

SYNOPSIS

Quick summary of what the module does.

use DLM::Client::Simple;

if ( dlm_lock('lock_name', 'EXCL') ) {
    #do something exclusively
} else {
    die $!;
}
...
dlm_unlock('lock_name') or die $!;

EXPORT

dlm_lock

dlm_unlock

FUNCTIONS

dlm_lock( $LOCK_NAME, $LOCK_MODE, $IS_NONBLOCKING )

$LOCK_NAME - can be any string less than 64 bytes

$LOCK_MODE - can be 'SHRD' or 'EXCL'

$IS_NONBLOCKING - if true then funtion does not wait for lock

RETURNS TRUE if lock was granted

Repetive calls update lock

dlm_unlock( $LOCK_NAME )

$LOCK_NAME - unlocks lock with name $LOCK_NAME

RETURNS TRUE on success

AUTHOR

koorchik, <koorchik at cpan.org>

BUGS

Please report any bugs or feature requests to bug-dlm-client-simple at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DLM-Client-Simple. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc DLM::Client::Simple

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2010 koorchik, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.