Asterisk func lock

Synopsis:

Attempt to obtain a named mutex
Introduced in Asterisk 1.6

Description:

LOCK(<lockname>)

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.

Notes

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.

  • *CLI> show function LOCK

See also


Synopsis:

Attempt to obtain a named mutex
Introduced in Asterisk 1.6

Description:

LOCK(<lockname>)

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.

Notes

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.

  • *CLI> show function LOCK

See also


Created by: fhackenberger, Last modification: Thu 12 of May, 2011 (15:03 UTC) by JustRumours
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+