deliver events with the core thread pool set events-use-dispatch=true in switch.conf.xml to use the old way

This commit is contained in:
Anthony Minessale
2013-09-05 03:42:35 +05:00
parent 44b01bee6b
commit a5f2176ea4
5 changed files with 79 additions and 24 deletions
+6 -2
View File
@@ -1622,10 +1622,14 @@ static void *SWITCH_THREAD_FUNC switch_core_session_thread_pool_worker(switch_th
td->func(thread, td->obj);
if (td->alloc) {
if (td->pool) {
switch_memory_pool_t *pool = td->pool;
td = NULL;
switch_core_destroy_memory_pool(&pool);
} else if (td->alloc) {
free(td);
}
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "Worker Thread %ld Done Processing\n", (long) thread);
switch_mutex_lock(session_manager.mutex);