New class proposal: AdvisoryLock
| From: | Charlie Killian | Date: | Sun, 17 Nov 2002 01:42:26 +0000 |
| Subject: | New class proposal: AdvisoryLock | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-10876@lists.php.net to get a copy of this message | ||
I wrote a simple AdvisoryLock class that creates a lock file in a directory.
It also tests for and deletes the lock file.
If there is any interested I'll be happy to add it to PEAR and maintain it.
Here's an example:
http://www.tizac.com/advisorylock/example_al.php
Here are the sources:
http://www.tizac.com/advisorylock/AdvisoryLock.phps
http://www.tizac.com/advisorylock/example_al.phps
Charlie