[Freeswitch-svn] [commit] r10364 - freeswitch/trunk/src/include
FreeSWITCH SVN
anthm at freeswitch.org
Wed Nov 12 11:45:12 PST 2008
Author: anthm
Date: Wed Nov 12 14:45:12 2008
New Revision: 10364
Log:
move macro
Modified:
freeswitch/trunk/src/include/switch_loadable_module.h
freeswitch/trunk/src/include/switch_module_interfaces.h
Modified: freeswitch/trunk/src/include/switch_loadable_module.h
==============================================================================
--- freeswitch/trunk/src/include/switch_loadable_module.h (original)
+++ freeswitch/trunk/src/include/switch_loadable_module.h Wed Nov 12 14:45:12 2008
@@ -392,8 +392,7 @@
}
-#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
+
Modified: freeswitch/trunk/src/include/switch_module_interfaces.h
==============================================================================
--- freeswitch/trunk/src/include/switch_module_interfaces.h (original)
+++ freeswitch/trunk/src/include/switch_module_interfaces.h Wed Nov 12 14:45:12 2008
@@ -620,6 +620,9 @@
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:
More information about the Freeswitch-svn
mailing list