
DBIx::Locker::Lock - a live resource lock

version 0.091350

Calling this method is a very, very stupid idea. This method is called by DBIx::Locker to create locks. Since you are not a locker, you should not call this method. Seriously.
my $locker = DBIx::Locker::Lock->new(\%arg);
This returns a new lock.
locker - the locker creating the lock
lock_id - the id of the lock in the lock table
expires - the time (in epoch seconds) at which the lock will expire
locked_by - a hashref of identifying information
These are accessors for data supplied to "new".
This method returns the lock's globally unique id.
This method unlocks the lock, deleting the semaphor record. This method is automatically called when locks are garbage collected.

Ricardo SIGNES <rjbs@cpan.org>

This software is copyright (c) 2009 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.