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_mutex_h 00010 #define zz_mutex_h 00011 00012 #include <zz_export.h> 00013 00014 /* 00015 Description: 00016 Basklass för mutex 00017 00018 Author: 00019 Toni Thomsson, toni@tonjac.org 00020 00021 Library: 00022 libzz.a (HPUX) libzz.lib (win32) 00023 00024 Platform: 00025 HPUX, win32 00026 */ 00027 class ZZ_API CzzMutex 00028 { 00029 00030 public: 00031 00032 // Description: Skapar en mutex 00033 // Remarks: Default konstruktor 00034 CzzMutex(); 00035 00036 // Remarks: Kopierings kontruktor 00037 CzzMutex( const CzzMutex &right // IN, objekt som skall kopieras 00038 ); 00039 00040 // Description: Destruktor 00041 virtual ~CzzMutex(); 00042 00043 // Description: Lås 00044 virtual bool Acquire( bool block // IN, block 00045 ) = 0; 00046 00047 // Description: Lås upp 00048 virtual void Release() = 0; 00049 }; 00050 00051 #endif 00052 00053
1.4.6-NO