move macro
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10364 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
722b830652
commit
909a38fcc0
|
@ -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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -620,6 +620,9 @@ struct switch_api_interface {
|
||||||
struct switch_api_interface *next;
|
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
|
SWITCH_END_EXTERN_C
|
||||||
#endif
|
#endif
|
||||||
/* For Emacs:
|
/* For Emacs:
|
||||||
|
|
Loading…
Reference in New Issue