NAME
Captive::Portal::Role::Locking - lock handling for Captive::Portal
DESCRIPTION
CaPo locking and transaction handling.
ROLES
- $capo->get_lock_handle(%named_params)
-
Returns a filehandle with the requested lock assigned. There is no unlock, after destroying the filehandle the file is automatically closed and the lock released.
Named parameters:
file => filename to lock, created if not existing shared => shared lock, defaults to exclusive lock blocking => blocking lock request, defaults to blocking try => number of retries in nonblocking mode, defaults to 1 retry timeout => timeout in blocking mode, defaults to 1s
AUTHOR
Karl Gaissmaier, <gaissmai at cpan.org>
LICENSE AND COPYRIGHT
Copyright 2010-2011 Karl Gaissmaier, all rights reserved.
This distribution is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or
b) the Artistic License version 2.0.