THREAD_LOCAL SimpleStats pmstats;
THREAD_LOCAL ProfileStats perfmonStats;
-int perfmon_rotate_perf_file = 0;
+THREAD_LOCAL bool perfmon_rotate_perf_file = false;
static SFPERF config;
SFPERF* perfmon_config = &config; //FIXIT-M remove this after flowip can be decoupled.
THREAD_LOCAL std::vector<PerfTracker*>* trackers;
//FIXIT-M: this shouldn't be needed outside of perfmon
extern SFPERF* perfmon_config;
-extern int perfmon_rotate_perf_file;
+extern THREAD_LOCAL bool perfmon_rotate_perf_file;
/* functions to set & get the RotatePerfFileFlag */
inline void SetRotatePerfFileFlag(void)
{
- perfmon_rotate_perf_file = 1;
+ perfmon_rotate_perf_file = true;
}
-inline int IsSetRotatePerfFileFlag(void)
+inline bool IsSetRotatePerfFileFlag(void)
{
return perfmon_rotate_perf_file;
}
inline void ClearRotatePerfFileFlag(void)
{
- perfmon_rotate_perf_file = 0;
+ perfmon_rotate_perf_file = false;
}
#endif