move macro

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10364 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-11-12 19:45:12 +00:00
parent 722b830652
commit 909a38fcc0
2 changed files with 4 additions and 2 deletions

View 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

View 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: