* remove some warnings
[profile/ivi/genivi/genivi-audio-manager.git] / include / shared / CAmSocketHandler.h
index 1c3383d..1e91b5f 100644 (file)
@@ -33,8 +33,6 @@ namespace am
 
 #define MAX_NS 1000000000L
 
-static volatile sig_atomic_t gDispatchDone = 1; //this global is used to stop the mainloop
-
 typedef uint16_t sh_timerHandle_t; //!<this is a handle for a timer to be used with the SocketHandler
 typedef uint16_t sh_pollHandle_t; //!<this is a handle for a filedescriptor to be used with the SocketHandler
 
@@ -159,7 +157,6 @@ public:
     void start_listenting();
     void stop_listening();
     void exit_mainloop();
-    static void static_exit_mainloop();
     void receiverCallback(const pollfd pollfd, const sh_pollHandle_t handle, void* userData)
         {
             (void) pollfd;
@@ -180,7 +177,7 @@ private:
 
     static CAmSocketHandler* mInstance;
     int mPipe[2];
-
+    int mDispatchDone; //this starts / stops the mainloop
     struct sh_timer_s //!<struct that holds information of timers
     {
         sh_timerHandle_t handle; //!<the handle of the timer