/
sysLock
sysLock
Description
Creates a named lock. Scripts using the same lock key will be blocked and wait for the current script to release the lock.
Parameters
Return Type
None
Examples
Example 1
sysLock("TEST-123");
The lock TEST-123 is now created and can not be acquired by other SIL scripts calling sysLock with the same lock key, in this case 'TEST-123'.
Example 2
Similar to the example above but uses the package.
use "system";
lock("TEST-123");
The lock TEST-123 is now created and can not be acquired by other SIL scripts calling sysLock with the same lock key, in this case 'TEST-123'.
See also
Peacock
, multiple selections available,
Related content
sysUnlock
sysUnlock
More like this
call
More like this
Listener Functions
Listener Functions
Read with this
Side Panels
Side Panels
More like this
sysSleep
sysSleep
Read with this
Side Panels
Side Panels
More like this