The "lock file" shall be used to avoid a concurrent access to the same ressource. So
lockFile := CslLockFile named: '/var/myapp/lock'.
would create the file /var/myapp/lock. If the directory doesn't exist it will be created. If the file allready exists a CslLockError will be raised. If the application should wait up to a given amount of seconds for the lock it can use
lockFile := CslLockFile named: '/var/myapp/' waitSeconds: 60.
The lock file will be released with
lockFile release.
Also if the image will be shut down the lock file will be released.
The lock file contains a UID as key. So
lockFile := CslLockFile named: '/var/myapp/lock' key: theKey.
can also take an existing lock file to release it.
