mirror of
				https://github.com/isledecomp/isle.git
				synced 2025-10-26 01:44:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			455 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			455 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef MXSEMAPHORE_H
 | |
| #define MXSEMAPHORE_H
 | |
| 
 | |
| #include "mxtypes.h"
 | |
| 
 | |
| #include <windows.h>
 | |
| 
 | |
| // VTABLE: LEGO1 0x100dccf0
 | |
| // SIZE 0x08
 | |
| class MxSemaphore {
 | |
| public:
 | |
| 	MxSemaphore();
 | |
| 
 | |
| 	// FUNCTION: LEGO1 0x100c87e0
 | |
| 	~MxSemaphore() { CloseHandle(m_hSemaphore); }
 | |
| 
 | |
| 	virtual MxResult Init(MxU32 p_initialCount, MxU32 p_maxCount);
 | |
| 
 | |
| 	void Wait(MxU32 p_timeoutMS);
 | |
| 	void Release(MxU32 p_releaseCount);
 | |
| 
 | |
| private:
 | |
| 	HANDLE m_hSemaphore; // 0x04
 | |
| };
 | |
| 
 | |
| #endif // MXSEMAPHORE_H
 | 
