diff --git a/core/AmSession.cpp b/core/AmSession.cpp index b89a1bed..ac8ad833 100644 --- a/core/AmSession.cpp +++ b/core/AmSession.cpp @@ -53,10 +53,10 @@ #include #include -volatile unsigned int AmSession::session_num = 0; +unsigned int AmSession::session_num = 0; AmMutex AmSession::session_num_mut; -volatile unsigned int AmSession::max_session_num = 0; -volatile unsigned long long AmSession::avg_session_num = 0; +unsigned int AmSession::max_session_num = 0; +unsigned long long AmSession::avg_session_num = 0; struct timeval get_now() { struct timeval res; diff --git a/core/AmSession.h b/core/AmSession.h index 1b910da5..ddac24b8 100644 --- a/core/AmSession.h +++ b/core/AmSession.h @@ -115,9 +115,9 @@ private: static void session_started(); static void session_stopped(); - static volatile unsigned int session_num; - static volatile unsigned int max_session_num; - static volatile unsigned long long avg_session_num; + static unsigned int session_num; + static unsigned int max_session_num; + static unsigned long long avg_session_num; static AmMutex session_num_mut; friend class AmMediaProcessor;