From e74ec0ddcf677424e2a8f5237753daf4fbcfeede Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Mon, 17 Feb 2025 16:19:49 +0100 Subject: [PATCH] MT#61878 trixie: AmSession remove volatile qualifiers Remove because misused. Change-Id: I199e92cf32e6f0ad20172efcd1894b72653aa1d1 --- core/AmSession.cpp | 6 +++--- core/AmSession.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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;