摘要:
#include "stdafx.h"#include "windows.h"class CLock{private: CRITICAL_SECTION m_section;public: CLock(void) { InitializeCriticalSection(&m_section); } ~CLock(void) { DeleteCriticalSection(&m_section); } void lock() { EnterCriticalSection(&m_section); } void unLock() { 阅读全文