1
0
cuberite-2a/src/OSSupport/Semaphore.h
madmaxoft 2423fbf2ef Normalized comments.
This was mostly done automatically and then visually inspected for obvious errors.
All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-07-17 22:15:34 +02:00

18 lines
248 B
C++

#pragma once
class cSemaphore
{
public:
cSemaphore( unsigned int a_MaxCount, unsigned int a_InitialCount = 0 );
~cSemaphore();
void Wait();
void Signal();
private:
void* m_Handle; // HANDLE pointer
#ifndef _WIN32
bool m_bNamed;
#endif
};