CMutex.h

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2002 Chris Schoeneman
00004  * 
00005  * This package is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * found in the file COPYING that should have accompanied this file.
00008  * 
00009  * This package is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  */
00014 
00015 #ifndef CMUTEX_H
00016 #define CMUTEX_H
00017 
00018 #include "IArchMultithread.h"
00019 
00021 
00029 class CMutex {
00030 public:
00031     CMutex();
00033 
00037     CMutex(const CMutex&);
00038     ~CMutex();
00039 
00041 
00042 
00044 
00048     CMutex&             operator=(const CMutex&);
00049 
00051 
00052 
00053 
00055 
00062     void                lock() const;
00063 
00065 
00069     void                unlock() const;
00070 
00072 
00073 private:
00074     friend class CCondVarBase;
00075     CArchMutex          m_mutex;
00076 };
00077 
00078 #endif

Generated on Fri Nov 6 00:18:45 2009 for synergy-plus by  doxygen 1.4.7