]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: remove ftdm_cpu_monitor_disable API (dup)
authorMoises Silva <moy@sangoma.com>
Fri, 24 Sep 2010 21:34:40 +0000 (17:34 -0400)
committerMoises Silva <moy@sangoma.com>
Fri, 24 Sep 2010 21:34:40 +0000 (17:34 -0400)
libs/freetdm/sample/boost/ftdmstart.c
libs/freetdm/sample/dso/ftdmload.c
libs/freetdm/sample/sched/ftdmsched.c
libs/freetdm/src/include/freetdm.h

index 972ed43146d7de0414a0b2afb04adf47736f6b37..bff0664bce300684ec38465162b5143b38f19288 100644 (file)
@@ -313,13 +313,6 @@ int main(int argc, char *argv[])
        /* set the logging level to use */
        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 */
        if (ftdm_global_init() != FTDM_SUCCESS) {
                fprintf(stderr, "Error loading FreeTDM\n");
index 5b150d67ed8a8646e576adf7652304d7f0d85bb8..80bcc02fc0cbc8f04f296e3d9f21488ebfc9427a 100644 (file)
@@ -134,8 +134,6 @@ int main(int argc, char *argv[])
        
        ftdm_global_set_default_logger(FTDM_LOG_LEVEL_DEBUG);
 
-       ftdm_cpu_monitor_disable();
-
        if (ftdm_global_init() != FTDM_SUCCESS) {
                fprintf(stderr, "Error loading FreeTDM\n");
                exit(-1);
index 5cd7d6340a8bdc29ba442ef4772c27431e38c508..e6e391ee4b14009646904ccd2a1d7c0c52711a4e 100644 (file)
@@ -73,8 +73,6 @@ int main(int argc, char *argv[])
        
        ftdm_global_set_default_logger(FTDM_LOG_LEVEL_DEBUG);
 
-       ftdm_cpu_monitor_disable();
-
        if (ftdm_global_init() != FTDM_SUCCESS) {
                fprintf(stderr, "Error loading FreeTDM\n");
                exit(-1);
index 078875b09cb3490ffda5b4e448e00df2faab42bf..a4181522514ffdd08eccb4550e39fe37e14d78fe 100644 (file)
@@ -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);
 
-/*! 
- * \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
  *