2012-06-14 13:06:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class cSemaphore
|
|
|
|
{
|
|
|
|
public:
|
2014-07-21 13:19:48 +00:00
|
|
|
cSemaphore( unsigned int a_MaxCount, unsigned int a_InitialCount = 0);
|
2012-06-14 13:06:06 +00:00
|
|
|
~cSemaphore();
|
|
|
|
|
|
|
|
void Wait();
|
|
|
|
void Signal();
|
|
|
|
private:
|
2015-05-09 09:16:56 +00:00
|
|
|
void * m_Handle; // HANDLE pointer
|
2012-06-14 13:06:06 +00:00
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
bool m_bNamed;
|
|
|
|
#endif
|
|
|
|
};
|