forked from metin2/server
1
0
Fork 0
server/libsql/include/CSemaphore.h

23 lines
299 B
C++

#ifndef __INC_METIN_II_SEMAPHORE_H__
#define __INC_METIN_II_SEMAPHORE_H__
#include <semaphore.h>
class CSemaphore
{
private:
sem_t * m_hSem;
public:
CSemaphore();
~CSemaphore();
int Initialize();
void Clear();
void Destroy();
int Wait();
int Release(int count = 1);
};
#endif