mirror of
				https://github.com/isledecomp/isle.git
				synced 2025-10-25 09:24:17 +00:00 
			
		
		
		
	 e7b5ea53df
			
		
	
	e7b5ea53df
	
	
	
		
			
			Was intended as a simple code improvement, however it also seems to make WinMain, MxString::operator=, MxDSFile::Open 100% (all of which just needed registers to be switched around)
		
			
				
	
	
		
			21 lines
		
	
	
		
			386 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			386 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef MXCRITICALSECTION_H
 | |
| #define MXCRITICALSECTION_H
 | |
| 
 | |
| #include <windows.h>
 | |
| 
 | |
| class MxCriticalSection
 | |
| {
 | |
| public:
 | |
|   __declspec(dllexport) MxCriticalSection();
 | |
|   __declspec(dllexport) ~MxCriticalSection();
 | |
|   __declspec(dllexport) static void SetDoMutex();
 | |
|   void Enter();
 | |
|   void Leave();
 | |
| 
 | |
| private:
 | |
|   CRITICAL_SECTION m_criticalSection;
 | |
|   HANDLE m_mutex;
 | |
| };
 | |
| 
 | |
| #endif // MXCRITICALSECTION_H
 |