CRITICAL_SECTION 用法

http://www.51zxw.net/study.asp?vip=1368926

#include <windows.h>
 
CRITICAL_SECTION cs;

InitializeCriticalSection(&cs);
DeleteCriticalSection(&cs);


EnterCriticalSection(&cs);
...
// 操作dwTime
...
LeaveCriticalSection(&cs);

你可能感兴趣的:(CRITICAL_SECTION 用法)