00001
00002 Copyright (c) 2001, Lee Patterson & Ant Works Software
00003 http://ssobjects.sourceforge.net
00004
00005 Original source from Win32 Multithreaded Programming
00006 Copyright (c) 1997 by Aaron Michael Cohen and Mike Woodring
00007
00008 filename : mclautolock.h
00009 author : Lee Patterson (lee@antws.com)
00010 *********************************************************************/
00011
00012 #ifndef __CMCLAUTOLOCK_H__
00013 #define __CMCLAUTOLOCK_H__
00014
00015
00016 #include "mclcritsec.h"
00017
00018 namespace ssobjects
00019 {
00020
00021 class CMclAutoLock
00022 {
00023 private:
00024
00025 CMclCritSec *m_pcCritSec;
00026
00027 public:
00028
00029
00030 CMclAutoLock( CMclCritSec & rCMclCritSec);
00031
00032
00033 ~CMclAutoLock(void);
00034
00035 private:
00036
00037 CMclAutoLock(const CMclAutoLock&);
00038 CMclAutoLock& operator=(const CMclAutoLock&);
00039 };
00040
00041 };
00042
00043 #endif
00044