add fsctl min_idle_cpu and min-idle-cpu feature to refuse calls after the system fallse below a certian percentage of idle cpu

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16962 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2010-03-10 20:21:34 +00:00
parent 869c221f3a
commit b1ddb70cf1
8 changed files with 94 additions and 26 deletions
+6
View File
@@ -31,6 +31,9 @@
* this file does not exist!!!!
*
*/
#include "switch_profile.h"
#ifndef WIN32
#include <switch_private.h>
#endif
@@ -220,6 +223,9 @@ struct switch_runtime {
uint32_t runlevel;
uint32_t tipping_point;
int32_t timer_affinity;
switch_profile_timer_t *profile_timer;
double profile_time;
double min_idle_time;
};
extern struct switch_runtime runtime;