D:/Zythum/DinoKod/Common/Mutex.cpp

00001 //---------------------------------------------------------------------------------------------
00002 //      This file is a part of "DinoKod".
00003 //      Copyright © 2003 Dino Productions. All Rights Reserved.
00004 //      
00005 //      File                    : Mutex.cpp
00006 //      Author                  : Sebastien LEIX        sebastien.leix@wanadoo.fr
00007 //      Date                    : 04/06/2003
00008 //      Modification    :
00009 //
00010 //---------------------------------------------------------------------------------------------
00011 #include "Common/Assert.h"
00012 #include "Common/Mutex.h"
00013 
00014 //---------------------------------------------------------------------------------------------
00015 KMutex::KMutex()
00016 {
00017         InitializeCriticalSection( &m_CriticalSection );
00018 }
00019 
00020 //---------------------------------------------------------------------------------------------
00021 KMutex::~KMutex()
00022 {
00023         DeleteCriticalSection( &m_CriticalSection );
00024 }
00025 
00026 //---------------------------------------------------------------------------------------------
00027 void KMutex::Lock()
00028 {
00029         EnterCriticalSection( &m_CriticalSection );
00030 }
00031 
00032 //---------------------------------------------------------------------------------------------
00033 void KMutex::Unlock()
00034 {
00035         LeaveCriticalSection( &m_CriticalSection );
00036 }

Generated on Sun Mar 25 20:02:11 2007 for Zythum Project by  doxygen 1.5.1-p1