Browse code

b/f: core: init monitoring interface used by core after loading modules

Stefan Sayer authored on 21/12/2013 15:15:10
Showing 3 changed files
... ...
@@ -115,10 +115,12 @@ bool AmSessionContainer::clean_sessions() {
115 115
   return more;
116 116
 }
117 117
 
118
-void AmSessionContainer::run()
119
-{
118
+void AmSessionContainer::initMonitoring() {
120 119
   _MONITORING_INIT;
120
+}
121 121
 
122
+void AmSessionContainer::run()
123
+{
122 124
   while(!_container_closed.get()){
123 125
 
124 126
     _run_cond.wait_for();
... ...
@@ -202,6 +202,8 @@ class AmSessionContainer : public AmThread
202 202
    */
203 203
   unsigned int getMaxCPS();
204 204
 
205
+  void initMonitoring();
206
+
205 207
   _MONITORING_DEFINE_INTERFACE;
206 208
 
207 209
 };
... ...
@@ -594,6 +594,8 @@ int main(int argc, char* argv[])
594 594
 
595 595
   AmPlugIn::instance()->registerLoggingPlugins();
596 596
 
597
+  AmSessionContainer::instance()->initMonitoring();
598
+
597 599
   #ifndef DISABLE_DAEMON_MODE
598 600
   if(fd[1]) {
599 601
     DBG("hi world! I'm main child [%d]\n", main_pid);