Initial commit: server + serverfiles

This commit is contained in:
Game
2026-08-17 17:31:44 +00:00
commit ff1237686b
17389 changed files with 868929 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef __INC_METIN_II_SEMAPHORE_H__
#define __INC_METIN_II_SEMAPHORE_H__
#ifndef __WIN32__
#include <semaphore.h>
#else
#endif
class CSemaphore
{
private:
#ifndef __WIN32__
sem_t * m_hSem;
#else
HANDLE m_hSem;
#endif
public:
CSemaphore();
~CSemaphore();
int Initialize();
void Clear();
void Destroy();
int Wait();
int Release(int count = 1);
};
#endif