Merged revisions 129970 via svnmerge from
[asterisk/asterisk.git] / include / asterisk / astobj.h
index dfdb55b..d32a7d0 100644 (file)
@@ -103,6 +103,8 @@ extern "C" {
  */
 #define ASTOBJ_WRLOCK(object) ast_mutex_lock(&(object)->_lock)
 
  */
 #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)
 
 /*! \brief Unlock a locked object. */
 #define ASTOBJ_UNLOCK(object) ast_mutex_unlock(&(object)->_lock)