base/zz_win_threadmutex.h

Go to the documentation of this file.
00001 /* libzz
00002  *
00003  * This program is distributed under the GNU General Public License, version 2.
00004  * A copy of this license is included with this source.
00005  *
00006  * Copyright 2000-2006, Toni Thomsson <toni@tonjac.org> 
00007 */
00008 
00009 #ifndef zz_win_threadmutex_h
00010 #define zz_win_threadmutex_h 1
00011 
00012 #include <windows.h>
00013 #include <zz_threadmutex.h>
00014 #include <zz_export.h>
00015 
00016 /*
00017         Description:
00018         Mutex för trådad programmering i win32 miljö
00019 
00020         Author: 
00021         Toni Thomsson <toni@tonjac.org> 
00022 
00023         Library:
00024         libzz.lib (win32)
00025 
00026         Platform:
00027         win32
00028 */
00029 class ZZ_API CzzWinThreadMutex : public CzzThreadMutex
00030 {
00031   
00032 public:
00033     
00034         // Description: Skapar mutex
00035         CzzWinThreadMutex();
00036 
00037         // Description: Destruktor
00038         virtual ~CzzWinThreadMutex();
00039 
00040         // Description: Lås
00041         virtual bool Acquire( bool block // IN, block
00042                                                         );
00043 
00044         // Description: Lås upp
00045         virtual void Release();
00046 
00047 protected:
00048 
00049     CRITICAL_SECTION m_Sem;
00050 };
00051 
00052 #endif
00053 
00054 

Generated on Thu Sep 21 21:45:42 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO