/** * Gracefully uninitialize the library, including shutdowning the scheduler if it was started. * **/ void ortp_exit() { if (__ortp_scheduler!=NULL) { rtp_scheduler_destroy(__ortp_scheduler); __ortp_scheduler=NULL; } }
/** * Gracefully uninitialize the library, including shutdowning the scheduler if it was started. * **/ void ortp_exit() { ortp_initialized--; if (ortp_initialized==0){ if (__ortp_scheduler!=NULL) { rtp_scheduler_destroy(__ortp_scheduler); __ortp_scheduler=NULL; } #ifdef HAVE_SRTP ortp_srtp_shutdown(); #endif } }
/** * Gracefully uninitialize the library, including shutdowning the scheduler if it was started. * **/ void ortp_exit() { if (ortp_initialized==0) { ortp_warning("ortp_exit() called without prior call to ortp_init(), ignored."); return; } ortp_initialized--; if (ortp_initialized==0){ if (__ortp_scheduler!=NULL) { rtp_scheduler_destroy(__ortp_scheduler); __ortp_scheduler=NULL; } ortp_uninit_logger(); } }
/** *ortp_exit: * * Gracefully uninitialize the library, including shutdowning the scheduler if it was started. * **/ void ortp_exit() { #ifdef BUILD_SCHEDULER if (ortp_scheduler!=NULL) { rtp_scheduler_destroy(ortp_scheduler); ortp_scheduler=NULL; } #endif /* <UOLFONE> */ #ifdef MBDB_LOCAL_POOL mbdb_mutex_cleanup(); #endif /* </UOLFONE> */ }
/** * Gracefully uninitialize the library, including shutdowning the scheduler if it was started. * **/ void ortp_exit() { if (ortp_initialized==0) { ortp_warning("ortp_exit() called without prior call to ortp_init(), ignored."); return; } ortp_initialized--; if (ortp_initialized==0){ if (__ortp_scheduler!=NULL) { rtp_scheduler_destroy(__ortp_scheduler); __ortp_scheduler=NULL; } #ifdef HAVE_SRTP ortp_srtp_shutdown(); #endif } }