Add project files.
This commit is contained in:
22
libsql/include/CSemaphore.h
Normal file
22
libsql/include/CSemaphore.h
Normal file
@ -0,0 +1,22 @@
|
||||
#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
|
Reference in New Issue
Block a user