00001 //--------------------------------------------------------------------------------------------- 00002 // This file is a part of "DinoKod". 00003 // Copyright © 2003 Dino Productions. All Rights Reserved. 00004 // 00005 // File : Mutex.h 00006 // Author : Sebastien LEIX sebastien.leix@wanadoo.fr 00007 // Date : 04/06/2003 00008 // Modification : 00009 // 00010 //--------------------------------------------------------------------------------------------- 00011 #ifndef __MUTEX_H__ 00012 #define __MUTEX_H__ 00013 00014 #include "Common/CommonDll.h" 00015 #include "Common/Types.h" 00016 #include <windows.h> 00017 00018 //--------------------------------------------------------------------------------------------- 00019 class COMMON_API KMutex 00020 { 00021 protected: 00022 CRITICAL_SECTION m_CriticalSection; 00023 00024 public: 00025 KMutex(); 00026 ~KMutex(); 00027 00028 void Lock(); 00029 void Unlock(); 00030 }; 00031 00032 #endif __MUTEX_H__
1.5.1-p1