[svn-commits] russell: branch 1.4 r129970 - /branches/1.4/include/asterisk/astobj.h
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Jul 11 09:18:43 CDT 2008
Author: russell
Date: Fri Jul 11 09:18:43 2008
New Revision: 129970
URL: http://svn.digium.com/view/asterisk?view=rev&rev=129970
Log:
add a simple ASTOBJ_TRYWRLOCK macro ...
Modified:
branches/1.4/include/asterisk/astobj.h
Modified: branches/1.4/include/asterisk/astobj.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/astobj.h?view=diff&rev=129970&r1=129969&r2=129970
==============================================================================
--- branches/1.4/include/asterisk/astobj.h (original)
+++ branches/1.4/include/asterisk/astobj.h Fri Jul 11 09:18:43 2008
@@ -105,6 +105,8 @@
/*! \brief Lock an ASTOBJ for writing.
*/
#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)
More information about the svn-commits
mailing list