a little bit oop
parent
0991238f4f
commit
aa47d28b27
|
@ -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++;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue