mirror of
				https://github.com/isledecomp/isle.git
				synced 2025-10-26 01:44:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			290 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			290 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef MXAUTOLOCK_H
 | |
| #define MXAUTOLOCK_H
 | |
| 
 | |
| class MxCriticalSection;
 | |
| 
 | |
| #define AUTOLOCK(CS) MxAutoLock lock(&CS)
 | |
| 
 | |
| class MxAutoLock {
 | |
| public:
 | |
| 	MxAutoLock(MxCriticalSection* p_criticalSection);
 | |
| 	~MxAutoLock();
 | |
| 
 | |
| private:
 | |
| 	MxCriticalSection* m_criticalSection; // 0x00
 | |
| };
 | |
| 
 | |
| #endif // MXAUTOLOCK_H
 | 
