server/libsql/include/CSemaphore.h

23 lines
299 B
C
Raw Normal View History

2022-03-05 12:44:06 +02:00
#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