forked from Mirrors/freeswitch
FS-10577: [core] start additional event dispatch threads based on event system queue size
This commit is contained in:
parent
54e6cd3ebf
commit
503b9d3753
@ -363,7 +363,7 @@ static switch_status_t switch_event_queue_dispatch_event(switch_event_t **eventp
|
|||||||
switch_mutex_lock(EVENT_QUEUE_MUTEX);
|
switch_mutex_lock(EVENT_QUEUE_MUTEX);
|
||||||
|
|
||||||
if (!PENDING && switch_queue_size(EVENT_DISPATCH_QUEUE) > (unsigned int)(DISPATCH_QUEUE_LEN * DISPATCH_THREAD_COUNT)) {
|
if (!PENDING && switch_queue_size(EVENT_DISPATCH_QUEUE) > (unsigned int)(DISPATCH_QUEUE_LEN * DISPATCH_THREAD_COUNT)) {
|
||||||
if (SOFT_MAX_DISPATCH + 1 > MAX_DISPATCH) {
|
if (SOFT_MAX_DISPATCH + 1 < MAX_DISPATCH) {
|
||||||
launch++;
|
launch++;
|
||||||
PENDING++;
|
PENDING++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user