@ -80,6 +80,7 @@ static GQueue rtpe_cli = G_QUEUE_INIT;
GQueue rtpe_control_ng = G_QUEUE_INIT ;
GQueue rtpe_control_ng = G_QUEUE_INIT ;
GQueue rtpe_control_ng_tcp = G_QUEUE_INIT ;
GQueue rtpe_control_ng_tcp = G_QUEUE_INIT ;
struct bufferpool * shm_bufferpool ;
struct bufferpool * shm_bufferpool ;
struct bufferpool * rtpe_bufferpool ;
memory_arena_t rtpe_arena ;
memory_arena_t rtpe_arena ;
struct rtpengine_config rtpe_config = {
struct rtpengine_config rtpe_config = {
@ -1501,6 +1502,7 @@ RTPE_CONFIG_CHARPP_PARAMS
static void early_init ( void ) {
static void early_init ( void ) {
socket_init ( ) ; / / needed for socktype_udp
socket_init ( ) ; / / needed for socktype_udp
rtpe_bufferpool = bufferpool_new ( bufferpool_aligned_alloc , bufferpool_aligned_free ) ;
memory_arena_init ( & rtpe_arena ) ;
memory_arena_init ( & rtpe_arena ) ;
memory_arena = & rtpe_arena ;
memory_arena = & rtpe_arena ;
}
}
@ -1982,6 +1984,7 @@ int main(int argc, char **argv) {
options_free ( ) ;
options_free ( ) ;
bufferpool_cleanup ( ) ;
bufferpool_cleanup ( ) ;
memory_arena_free ( & rtpe_arena ) ;
memory_arena_free ( & rtpe_arena ) ;
bufferpool_destroy ( rtpe_bufferpool ) ;
return 0 ;
return 0 ;
}
}