]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move macro
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 12 Nov 2008 19:45:12 +0000 (19:45 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 12 Nov 2008 19:45:12 +0000 (19:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10364 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_loadable_module.h
src/include/switch_module_interfaces.h

index 9a0fc6fd1885a5670cb9d88ecc9dcccd50b3905a..42a34d654107aae926ef0e180eeeff18230bddca 100644 (file)
@@ -392,8 +392,7 @@ SWITCH_DECLARE(uint32_t) switch_core_codec_next_id(void);
        }
 
 
-#define PROTECT_INTERFACE(_it) switch_thread_rwlock_rdlock(_it->parent->rwlock); switch_thread_rwlock_rdlock(_it->rwlock)
-#define UNPROTECT_INTERFACE(_it) switch_thread_rwlock_unlock(_it->rwlock); switch_thread_rwlock_unlock(_it->parent->rwlock); _it = NULL
+
 
 
 
index a144c333fb9f6294e1a617b3b4ac2a2eb3b62619..adfce928ebf4e1f1c7a3528e2b43be74f2a9949e 100644 (file)
@@ -620,6 +620,9 @@ struct switch_api_interface {
        struct switch_api_interface *next;
 };
 
+#define PROTECT_INTERFACE(_it) switch_thread_rwlock_rdlock(_it->parent->rwlock); switch_thread_rwlock_rdlock(_it->rwlock)
+#define UNPROTECT_INTERFACE(_it) switch_thread_rwlock_unlock(_it->rwlock); switch_thread_rwlock_unlock(_it->parent->rwlock); _it = NULL
+
 SWITCH_END_EXTERN_C
 #endif
 /* For Emacs: