mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 10:26:51 +00:00
FS-10577: [core] start additional event dispatch threads based on event system queue size
This commit is contained in:
parent
21620cc3a3
commit
9f782bdc04
@ -362,7 +362,7 @@ static switch_status_t switch_event_queue_dispatch_event(switch_event_t **eventp
|
||||
switch_mutex_lock(EVENT_QUEUE_MUTEX);
|
||||
|
||||
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++;
|
||||
PENDING++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user