Previous Next Edit Rename Undo Search Administration
Stream = LOCK Path
Use the specified Path
to create a system-global lock.
If the specified file is already locked by another process, then the command fails.
DIM hLock AS Stream
' Try to acquire the lock
TRY hLock = LOCK "~/my-lock"
IF ERROR THEN
PRINT "Locked is already acquired. Try again later."
' File is locked, you can do the job now!
' Do not forget to release the lock