Skip to content

Commit

Permalink
Make pjmedia event manager's MAX_EVENTS configurable (#4028)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauwming authored Aug 1, 2024
1 parent d3d1298 commit 26e8d12
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion pjmedia/include/pjmedia/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,21 @@
#endif

/**
* Memory increment for evnt manager.
* Memory increment for event manager.
*/
#ifndef PJMEDIA_POOL_INC_EVTMGR
# define PJMEDIA_POOL_INC_EVTMGR 500
#endif

/**
* Maximum number of events that can be handled by event manager.
*
* Default: 16
*/
#ifndef PJMEDIA_EVENT_MAX_EVENTS
# define PJMEDIA_EVENT_MAX_EVENTS 16
#endif

/**
* Specify whether we prefer to use audio switch board rather than
* conference bridge.
Expand Down
3 changes: 2 additions & 1 deletion pjmedia/src/pjmedia/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <pjmedia/config.h>
#include <pjmedia/event.h>
#include <pjmedia/errno.h>
#include <pj/assert.h>
Expand All @@ -26,7 +27,7 @@

#define THIS_FILE "event.c"

#define MAX_EVENTS 16
#define MAX_EVENTS PJMEDIA_EVENT_MAX_EVENTS

/* Enable some tracing */
// #define EVENT_TRACE
Expand Down

0 comments on commit 26e8d12

Please sign in to comment.