LOCKRESOURCE()
From Lianjapedia
Revision as of 11:17, 25 April 2017 by Yvonne.milne (Talk | contribs)
Contents
Purpose
Function to lock a named resource
Syntax
LOCKRESOURCE(<cResource> [, <cMode>])
See Also
UNLOCKRESOURCE(), UNLOCKRESOURCEALL()
Description
The LOCKRESOURCE() function attempts to lock the named resource <cResource> in mode <cMode>.
Argument | Description |
---|---|
<cResource> | Character string specifying the name of the resource |
<cMode> | Character string specifying the mode: "shared" or "exclusive" |
Example
lockResource("LianjaCloudServerRequestLoop", "exclusive") unlockresource("LianjaCloudServerRequestLoop") lockResource("LianjaCloudServerRequestLoop", "shared") unlockresource("LianjaCloudServerRequestLoop") lockResource("myresource", "exclusive") unlockresourceall()