Restructured src folder to be more clean

This commit is contained in:
seefo
2018-01-11 04:17:47 -05:00
parent e99d0f02a8
commit 3e3d18d318
20987 changed files with 5 additions and 1940589 deletions
@@ -0,0 +1,42 @@
// Copyright 2004 Sony Online Entertainment, all rights reserved.
// Author: Jeff Petersen
#include <assert.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "UdpLibrary.h"
namespace UdpLibrary
{
////////////////////////////////////////////////////////
// UdpGuardedRefCount
////////////////////////////////////////////////////////
void UdpGuardedRefCount::AddRef() const
{
UdpGuard guard(&mGuard);
UdpRefCount::AddRef();
}
void UdpGuardedRefCount::Release() const
{
mGuard.Enter();
assert(!mNoRef);
assert(mRefCount > 0);
bool done = (--mRefCount == 0);
mGuard.Leave();
if (done)
{
delete this;
}
}
} // namespace