$locker = new FileLocker('large-process', ['lockDir' => '/tmp/lock']);
if ($locker->isLocked()) {
die('Already locked');
}
$locker->lock();
... some code ...
$locker->unlock();
-
Notifications
You must be signed in to change notification settings - Fork 1
PHP lib for process locking
License
hopeua/locker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
PHP lib for process locking
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published