mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-10577: [core] start additional event dispatch threads based on event system queue size
This commit is contained in:
+1
-1
@@ -363,7 +363,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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user