hope/locker

Process locker

Installs: 99

Dependents: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 1

1.1.1 2014-06-10 10:12 UTC

README

Test passing Latest Stable Version

Usage

$locker = new FileLocker('large-process', ['lockDir' => '/tmp/lock']);
if ($locker->isLocked()) {
    die('Already locked');
}

$locker->lock();
... some code ...
$locker->unlock();