#ifndef __INC_METIN_II_SEMAPHORE_H__ #define __INC_METIN_II_SEMAPHORE_H__ #ifndef __WIN32__ #include #else #endif class CSemaphore { private: #ifndef __WIN32__ sem_t * m_hSem; #else HANDLE m_hSem; #endif public: CSemaphore(); ~CSemaphore(); int Initialize(); void Clear(); void Destroy(); int Wait(); int Release(int count = 1); }; #endif //martysama0134's 623a0779c74cb7565145d45548376308