FS-10577: [core] start additional event dispatch threads based on event system queue size

This commit is contained in:
Mike Jerris committed 2017-08-10 10:25:12 -05:00
1 parent 54e6cd3ebf
commit 503b9d3753
1 file changed
+1 -1
+1 -1
View File
@@ -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++;
}