C++多線程——線程同步

線程同步一般有三種實現方法: 互斥對象(CreateMutex), 事件對象(CreateEvent), 關鍵代碼段(CriticalSection) 互斥對象 創建互斥 #ifdef UNICODE #define CreateMutex CreateMutexW #else #define CreateMutex CreateMutexA #endif // !UNICODE HANDLE W
相關文章
相關標籤/搜索