some priority queuing tweaks for performance

This commit is contained in:
Anthony Minessale
2012-10-01 11:47:26 -05:00
parent bf060c6396
commit 8733a2c895
7 changed files with 16 additions and 5 deletions

View File

@@ -112,6 +112,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
switch_assert(session != NULL);
switch_os_yield();
if (switch_mutex_trylock(session->codec_read_mutex) == SWITCH_STATUS_SUCCESS) {
switch_mutex_unlock(session->codec_read_mutex);
} else {