MFC的多线程同步和互斥
发布日期:2021-05-09 00:20:34 浏览次数:15 分类:博客文章

本文共 1252 字,大约阅读时间需要 4 分钟。

������������:

���������

���������

���������

������

  ������ ������������ MFC������������
���������     ���������������������������������������������������������������������������������

EnterCriticalSection()(���������WinBase.h���)

LeaveCriticalSection()

CCriticalSection���

Lock()
UnLock()

���������

������������������������������������������������������������������������������������������������������������������������

������������������������������������������������������������������������������

CreateMutex��������������������������� 
OpenMutex��������������������������� 
ReleaseMutex��������������������� 
WaitForMultipleObjects��������������������������� 
CMutex
��������� ������������������������������������������������,���������������������������������������������������������  ������ CreateSemaphore��������������������������� 
  ������OpenSemaphore��������������������������� 
  ������ReleaseSemaphore��������������������� 
  ������WaitForSingleObject��������������������� 
HANDLE 
������ ������������������������������������������������   ������CreateEvent��������������������������� 
  ������OpenEvent������������������������ 
  ������SetEvent������������������ 
  ������WaitForSingleObject������������������������ 
  ������WaitForMultipleObjects������
HANDLE 

������������:

上一篇:学习吸收优秀者的开发习惯,并自己复述出来
下一篇:静态创建和动态创建对象的区别

发表评论

最新留言

很好
[***.229.124.182]2025年05月04日 11时33分56秒