mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 22:03:50 +00:00
freetdm: remove ftdm_cpu_monitor_disable API
This commit is contained in:
parent
55757c4f77
commit
5db55ae490
@ -313,13 +313,6 @@ int main(int argc, char *argv[])
|
|||||||
/* set the logging level to use */
|
/* set the logging level to use */
|
||||||
ftdm_global_set_default_logger(FTDM_LOG_LEVEL_DEBUG);
|
ftdm_global_set_default_logger(FTDM_LOG_LEVEL_DEBUG);
|
||||||
|
|
||||||
/* this is optional.
|
|
||||||
* cpu monitor is a default feature in freetdm that launches 1 thread
|
|
||||||
* to monitor system-wide CPU usage. If it goes above a predefined threshold
|
|
||||||
* it will stop accepting calls to try to protect the quality of current calls */
|
|
||||||
ftdm_cpu_monitor_disable();
|
|
||||||
|
|
||||||
|
|
||||||
/* Initialize the FTDM library */
|
/* Initialize the FTDM library */
|
||||||
if (ftdm_global_init() != FTDM_SUCCESS) {
|
if (ftdm_global_init() != FTDM_SUCCESS) {
|
||||||
fprintf(stderr, "Error loading FreeTDM\n");
|
fprintf(stderr, "Error loading FreeTDM\n");
|
||||||
|
@ -134,8 +134,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
ftdm_global_set_default_logger(FTDM_LOG_LEVEL_DEBUG);
|
ftdm_global_set_default_logger(FTDM_LOG_LEVEL_DEBUG);
|
||||||
|
|
||||||
ftdm_cpu_monitor_disable();
|
|
||||||
|
|
||||||
if (ftdm_global_init() != FTDM_SUCCESS) {
|
if (ftdm_global_init() != FTDM_SUCCESS) {
|
||||||
fprintf(stderr, "Error loading FreeTDM\n");
|
fprintf(stderr, "Error loading FreeTDM\n");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
@ -73,8 +73,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
ftdm_global_set_default_logger(FTDM_LOG_LEVEL_DEBUG);
|
ftdm_global_set_default_logger(FTDM_LOG_LEVEL_DEBUG);
|
||||||
|
|
||||||
ftdm_cpu_monitor_disable();
|
|
||||||
|
|
||||||
if (ftdm_global_init() != FTDM_SUCCESS) {
|
if (ftdm_global_init() != FTDM_SUCCESS) {
|
||||||
fprintf(stderr, "Error loading FreeTDM\n");
|
fprintf(stderr, "Error loading FreeTDM\n");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
@ -1176,16 +1176,6 @@ FT_DECLARE(ftdm_iterator_t *) ftdm_span_get_chan_iterator(const ftdm_span_t *spa
|
|||||||
*/
|
*/
|
||||||
FT_DECLARE(char *) ftdm_api_execute(const char *cmd);
|
FT_DECLARE(char *) ftdm_api_execute(const char *cmd);
|
||||||
|
|
||||||
/*!
|
|
||||||
* \brief Disables CPU monitoring
|
|
||||||
*
|
|
||||||
* \note CPU monitoring is enabled by default. This means a thread will be launched at startup (ftdm_global_init)
|
|
||||||
* with the sole purpose of monitoring system-wide CPU usage. If the CPU usage raises above a defined
|
|
||||||
* threshold, no new calls will be accepted (neither incoming or outgoing)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
FT_DECLARE(void) ftdm_cpu_monitor_disable(void);
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Create a configuration node
|
* \brief Create a configuration node
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user