mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
allow event consumer to supply size as optional arg
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user