#ifndef __LOCK_H_ #define __LOCK_H_ /*-----------------ÁÙ½çÇø-----------------*/ class CLock { public: CLock(); ~CLock(); void lock(); void unlock(); private: CRITICAL_SECTION cs; }; class CAutoLock { public: CAutoLock(CLock* plock); ~CAutoLock(); private: CLock* m_plock; }; #endif