allow event consumer to supply size as optional arg

This commit is contained in:
Anthony Minessale
2012-06-14 11:31:46 -05:00
parent b472edf444
commit 830755ac85
2 changed files with 3 additions and 3 deletions

View File

@@ -50,11 +50,11 @@ static void event_handler(switch_event_t *event)
}
SWITCH_DECLARE_CONSTRUCTOR EventConsumer::EventConsumer(const char *event_name, const char *subclass_name)
SWITCH_DECLARE_CONSTRUCTOR EventConsumer::EventConsumer(const char *event_name, const char *subclass_name, int len)
{
switch_core_new_memory_pool(&pool);
switch_queue_create(&events, 5000, pool);
switch_queue_create(&events, len, pool);
node_index = 0;
if (!zstr(event_name)) {