mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
add a simple ASTOBJ_TRYWRLOCK macro ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@129970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -106,6 +106,8 @@ extern "C" {
|
||||
*/
|
||||
#define ASTOBJ_WRLOCK(object) ast_mutex_lock(&(object)->_lock)
|
||||
|
||||
#define ASTOBJ_TRYWRLOCK(object) ast_mutex_trylock(&(object)->_lock)
|
||||
|
||||
/*! \brief Unlock a locked object. */
|
||||
#define ASTOBJ_UNLOCK(object) ast_mutex_unlock(&(object)->_lock)
|
||||
|
||||
|
Reference in New Issue
Block a user