提交 01861950 authored 作者: Anthony Minessale's avatar Anthony Minessale

update defined code that doesn't compile anyway

上级 f7612413
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <switch.h> #include <switch.h>
#include <switch_event.h> #include <switch_event.h>
//#define SWITCH_EVENT_RECYCLE
#define DISPATCH_QUEUE_LEN 10000 #define DISPATCH_QUEUE_LEN 10000
//#define DEBUG_DISPATCH_QUEUES //#define DEBUG_DISPATCH_QUEUES
...@@ -691,7 +691,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_create_subclass_detailed(const char ...@@ -691,7 +691,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_create_subclass_detailed(const char
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
} }
#ifdef SWITCH_EVENT_RECYCLE #ifdef SWITCH_EVENT_RECYCLE
if (switch_queue_trypop(EVENT_RECYCLE_QUEUE, &pop) == SWITCH_STATUS_SUCCESS && pop) { if (EVENT_RECYCLE_QUEUE && switch_queue_trypop(EVENT_RECYCLE_QUEUE, &pop) == SWITCH_STATUS_SUCCESS && pop) {
*event = (switch_event_t *) pop; *event = (switch_event_t *) pop;
} else { } else {
#endif #endif
...@@ -834,7 +834,7 @@ static switch_event_header_t *new_header(const char *header_name) ...@@ -834,7 +834,7 @@ static switch_event_header_t *new_header(const char *header_name)
#ifdef SWITCH_EVENT_RECYCLE #ifdef SWITCH_EVENT_RECYCLE
void *pop; void *pop;
if (switch_queue_trypop(EVENT_HEADER_RECYCLE_QUEUE, &pop) == SWITCH_STATUS_SUCCESS) { if (EVENT_HEADER_RECYCLE_QUEUE && switch_queue_trypop(EVENT_HEADER_RECYCLE_QUEUE, &pop) == SWITCH_STATUS_SUCCESS) {
header = (switch_event_header_t *) pop; header = (switch_event_header_t *) pop;
} else { } else {
#endif #endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论