Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
80
Server/NFAuthTool/NFAuthServer/NaveNet/NFSync.h
Normal file
80
Server/NFAuthTool/NFAuthServer/NaveNet/NFSync.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @file NFSync.h
|
||||
* @brief Sync Ŭ<><C5AC><EFBFBD><EFBFBD>
|
||||
* @remarks
|
||||
* @author <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(edith2580@gmail.com)
|
||||
* @date 2009-04-02
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
namespace NaveNet {
|
||||
|
||||
/**
|
||||
* @class NFSync
|
||||
* @brief Sync Ŭ<><C5AC><EFBFBD><EFBFBD>
|
||||
* @remarks
|
||||
* NFSync Sync; \r\n
|
||||
* NFSyncLock CL(&Sync);
|
||||
*
|
||||
* @par
|
||||
* @author Edith
|
||||
* @date 2009-04-05
|
||||
*/
|
||||
class NFSync
|
||||
{
|
||||
public:
|
||||
NFSync(VOID)
|
||||
{
|
||||
InitializeCriticalSection(&m_Sync);
|
||||
}
|
||||
|
||||
~NFSync(VOID)
|
||||
{
|
||||
DeleteCriticalSection(&m_Sync);
|
||||
}
|
||||
|
||||
inline VOID Enter(VOID)
|
||||
{
|
||||
EnterCriticalSection(&m_Sync);
|
||||
}
|
||||
|
||||
inline VOID Leave(VOID)
|
||||
{
|
||||
LeaveCriticalSection(&m_Sync);
|
||||
}
|
||||
|
||||
private:
|
||||
CRITICAL_SECTION m_Sync;
|
||||
};
|
||||
|
||||
/**
|
||||
* @class NFSyncLock
|
||||
* @brief <20>̱۽<CCB1><DBBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ũ
|
||||
* @remarks
|
||||
*
|
||||
* @par
|
||||
* @author Edith
|
||||
* @date 2009-04-05
|
||||
*/
|
||||
class NFSyncLock
|
||||
{
|
||||
public:
|
||||
NFSyncLock(LPVOID lpVoid)
|
||||
{
|
||||
m_pThis = (NFSync*)lpVoid;
|
||||
m_pThis->Enter();
|
||||
}
|
||||
|
||||
~NFSyncLock(VOID)
|
||||
{
|
||||
if(m_pThis)
|
||||
m_pThis->Leave();
|
||||
}
|
||||
|
||||
private:
|
||||
NFSync *m_pThis;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user