git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7901 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-03-17 16:25:53 +00:00
parent fbccbd1e23
commit 8712d3827b
1 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,8 @@ static switch_mutex_t *BLOCK = NULL;
static switch_mutex_t *POOL_LOCK = NULL;
static switch_memory_pool_t *RUNTIME_POOL = NULL;
static switch_memory_pool_t *THRUNTIME_POOL = NULL;
static switch_queue_t *EVENT_QUEUE[MAX_DISPATCH] = { 0 };
#define NUMBER_OF_QUEUES 3
static switch_queue_t *EVENT_QUEUE[NUMBER_OF_QUEUES] = { 0 };
static switch_queue_t *EVENT_DISPATCH_QUEUE[MAX_DISPATCH] = { 0 };
static int POOL_COUNT_MAX = SWITCH_CORE_QUEUE_LEN;
static switch_mutex_t *EVENT_QUEUE_MUTEX = NULL;
@ -179,7 +180,7 @@ static void *SWITCH_THREAD_FUNC switch_event_dispatch_thread(switch_thread_t * t
THREAD_COUNT++;
switch_mutex_unlock(EVENT_QUEUE_MUTEX);
for (my_id = 0; my_id < MAX_DISPATCH; my_id++) {
for (my_id = 0; my_id < NUMBER_OF_QUEUES; my_id++) {
if (EVENT_DISPATCH_QUEUE[my_id] == queue) {
break;
}
@ -222,7 +223,7 @@ static void *SWITCH_THREAD_FUNC switch_event_thread(switch_thread_t * thread, vo
THREAD_COUNT++;
switch_mutex_unlock(EVENT_QUEUE_MUTEX);
for (my_id = 0; my_id < MAX_DISPATCH; my_id++) {
for (my_id = 0; my_id < NUMBER_OF_QUEUES; my_id++) {
if (EVENT_QUEUE[my_id] == queue) {
break;
}