From 7bdd60d6f08d28615895ce70b60bd5a39d3f4883 Mon Sep 17 00:00:00 2001 From: David Vossel Date: Mon, 20 Dec 2010 18:03:09 +0000 Subject: New astobj2 flag for issuing a callback without locking the container. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@299135 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/astobj2.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/asterisk/astobj2.h') diff --git a/include/asterisk/astobj2.h b/include/asterisk/astobj2.h index 21dc60611..ff35599ca 100644 --- a/include/asterisk/astobj2.h +++ b/include/asterisk/astobj2.h @@ -674,6 +674,12 @@ enum search_flags { * the hash value on the argument. */ OBJ_CONTINUE = (1 << 4), + /*! + * \brief By using this flag, the ao2_container being searched will _NOT_ + * be locked. Only use this flag if the ao2_container is being protected + * by another mechanism other that the internal ao2_lock. + */ + OBJ_NOLOCK = (1 << 5), }; /*! -- cgit v1.2.3