提交 6610e6e9 authored 作者: Anthony Minessale's avatar Anthony Minessale

tweak

上级 e70af1f8
......@@ -35,7 +35,7 @@
#include <switch.h>
#include <switch_event.h>
#define DISPATCH_QUEUE_LEN 5000
#define DISPATCH_QUEUE_LEN 10000
//#define DEBUG_DISPATCH_QUEUES
/*! \brief A node to store binded events */
......@@ -1397,11 +1397,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_fire_detailed(const char *file, con
for (;;) {
for (index = (*event)->priority; index < 3; index++) {
int was = (*event)->priority;
if (switch_queue_trypush(EVENT_QUEUE[index], *event) == SWITCH_STATUS_SUCCESS) {
if (index != was) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "queued event at a lower priority %d/%d!\n", index, was);
}
goto end;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论