[add] Initiali_Commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#include "pch.h"
|
||||
#include "Base.h"
|
||||
|
||||
|
||||
CBase::CBase()
|
||||
{
|
||||
}
|
||||
|
||||
_uint CBase::AddRef()
|
||||
{
|
||||
return ++m_iRefCnt;
|
||||
}
|
||||
|
||||
_uint CBase::Release()
|
||||
{
|
||||
if (0 == m_iRefCnt)
|
||||
{
|
||||
Free();
|
||||
|
||||
delete this;
|
||||
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
return m_iRefCnt--;
|
||||
}
|
||||
}
|
||||
|
||||
void CBase::Free()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user