diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/astobj.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/astobj.h b/include/asterisk/astobj.h index dfdb55b64..d32a7d0e1 100644 --- a/include/asterisk/astobj.h +++ b/include/asterisk/astobj.h @@ -103,6 +103,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) |