When in the same process multiple LockFile objects are created for the same file, deleting one object releases all locks on the file, thus also the locks held by the other LockFile objects. One can use the test program tLockFile to test for this behaviour. Acquire the lock and get the synchronization info. Test if another process needs the files. At this point another process can grab the lock.
Motivation Make it possible to lock and synchronize tables in an easy and efficient way.
Create or open the lock file with the given name. True or if the file does not exist yet. False, function acquire does not add the request to the lock file when a lock cannot be acquired. This may result in better performance, but should be used with care. Otherwise it will be created if it does not exist yet.