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