a little bit oop

pull/2/head
acetone 2022-08-11 00:53:41 +03:00
parent 0991238f4f
commit aa47d28b27
2 changed files with 3 additions and 3 deletions

View File

@ -297,11 +297,11 @@ void TimeToken::init()
m_updater->start();
}
std::atomic<size_t> IdCounter::counter = 0;
std::atomic<size_t> IdCounter::m_counter = 0;
size_t IdCounter::get()
{
size_t value = ++counter;
size_t value = ++m_counter;
if (value == 0)
{
value++;

View File

@ -137,7 +137,7 @@ public:
static size_t get();
private:
static std::atomic<size_t> counter;
static std::atomic<size_t> m_counter;
};
class TokenManager