From e0804abc33a18c2b754401709fecd5aadb26a36f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 29 Jul 2025 11:35:58 -0400 Subject: [PATCH] MT#62181 remove underscore from private member Change-Id: I3768153b44e813b046b6931be9d1d54d49d28004 --- core/singleton.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/singleton.h b/core/singleton.h index 24b43669..90f0dd60 100644 --- a/core/singleton.h +++ b/core/singleton.h @@ -9,11 +9,11 @@ class singleton public: static T* instance() { - _inst_m.lock(); + inst_m.lock(); if(NULL == _instance) { _instance = new T(); } - _inst_m.unlock(); + inst_m.unlock(); return _instance; } @@ -21,31 +21,31 @@ public: static bool haveInstance() { bool res = false; - _inst_m.lock(); + inst_m.lock(); res = _instance != NULL; - _inst_m.unlock(); + inst_m.unlock(); return res; } static void dispose() { - _inst_m.lock(); + inst_m.lock(); if(_instance != NULL){ delete _instance; _instance = NULL; } - _inst_m.unlock(); + inst_m.unlock(); } private: static T* _instance; - static AmMutex _inst_m; + static AmMutex inst_m; }; template T* singleton::_instance = NULL; template -AmMutex singleton::_inst_m; +AmMutex singleton::inst_m; #endif