Asterisk Project : Asterisk 10 Function_LOCK This page last changed on Oct 14, 2011 by wikibot. # LOCK() ### Synopsis Attempt to obtain a named mutex. ### Description Attempts to grab a named lock exclusively, and prevents other channels from obtaining the same lock. LOCK will wait for the lock to become available. Returns `1` if the lock was obtained or `0` on error. To avoid the possibility of a deadlock, LOCK will only attempt to obtain the lock for 3 seconds if the channel already has another lock.To avoid the possibility of a deadlock, LOCK will only attempt to obtain the lock for 3 seconds if the channel already has another lock. ### Syntax
    LOCK(lockname)
##### Arguments `lockname` ### See Also ### Import Version This documentation was imported from Asterisk version SVN-branch-10-r340810.

Document generated by Confluence on Oct 14, 2011 13:25