1
#include "../NKernel.h"
6
NCriticalSection NRefCount::m_CriticalSection;
13
NRefCount::~NRefCount()
18
void NRefCount::Increment()
20
NScopeLock Scope(&m_CriticalSection);
21
m_TSCounter.Increment();
24
void NRefCount::Decrement()
26
NScopeLock Scope(&m_CriticalSection);
27
m_TSCounter.Decrement();
30
t_u32 NRefCount::GetRefCount() const
32
NScopeLock Scope(&m_CriticalSection);
33
return m_TSCounter.GetValue();