43 if (session->io_rwlock) {
56 if (session->io_rwlock) {
69 if (session->io_rwlock) {
79 #ifdef SWITCH_DEBUG_RWLOCKS
87 if (session->rwlock) {
92 #ifdef SWITCH_DEBUG_RWLOCKS
100 #ifdef SWITCH_DEBUG_RWLOCKS
106 #ifdef SWITCH_DEBUG_RWLOCKS
117 #ifdef SWITCH_DEBUG_RWLOCKS
125 if (session->rwlock) {
128 #ifdef SWITCH_DEBUG_RWLOCKS
134 #ifdef SWITCH_DEBUG_RWLOCKS
144 #ifdef SWITCH_DEBUG_RWLOCKS
157 #ifdef SWITCH_DEBUG_RWLOCKS
switch_channel_state_t switch_channel_get_state(switch_channel_t *channel)
Get the current state of a channel in the state engine.
switch_status_t switch_core_session_io_write_lock(switch_core_session_t *session)
switch_status_t switch_thread_rwlock_unlock(switch_thread_rwlock_t *rwlock)
uint32_t switch_channel_test_flag(switch_channel_t *channel, switch_channel_flag_t flag)
Test for presence of given flag on a given channel.
switch_status_t switch_core_session_io_read_lock(switch_core_session_t *session)
switch_status_t switch_core_session_io_rwunlock(switch_core_session_t *session)
switch_status_t switch_thread_rwlock_wrlock(switch_thread_rwlock_t *rwlock)
switch_status_t switch_core_session_read_lock_hangup(switch_core_session_t *session)
switch_status_t switch_thread_rwlock_tryrdlock(switch_thread_rwlock_t *rwlock)
#define switch_channel_down_nosig(_channel)
void switch_core_session_rwunlock(switch_core_session_t *session)
char * switch_core_session_get_uuid(_In_ switch_core_session_t *session)
Retrieve the unique identifier from a session.
void switch_core_session_write_lock(switch_core_session_t *session)
switch_status_t
Common return values.
switch_status_t switch_core_session_wake_session_thread(_In_ switch_core_session_t *session)
switch_status_t switch_core_session_read_lock(switch_core_session_t *session)
#define switch_test_flag(obj, flag)
Test for the existance of a flag on an arbitary object.
void switch_log_printf(_In_ switch_text_channel_t channel, _In_z_ const char *file, _In_z_ const char *func, _In_ int line, _In_opt_z_ const char *userdata, _In_ switch_log_level_t level, _In_z_ _Printf_format_string_ const char *fmt,...) PRINTF_FUNCTION(7
Write log data to the logging engine.
char * switch_channel_get_name(switch_channel_t *channel)
Retrieve the name of a given channel.