文件名称:MulThreadclass
- 所属分类:
- 进程与线程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 25kb
- 下载次数:
- 0次
- 提 供 者:
- pri****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
感觉多线程确实麻烦,线程间要处理好同步与通讯,如果用CWinThread好一点,直接是一个线程对象,如果用AfxBeginThread,那必须定个全局函数,或者写个静态函数,一般是传个this指针进去,然后再用这个指针调用本类函数的成员函数,用起来比较麻烦,现在问题是能不能不用全局或者静态函数来实现呢,于是我实现了这个类,来所简化多线程的创建和关闭的操作。-Trouble feeling really multi-threaded, thread synchronization and communication between the handle, if a little better CWinThread directly is a thread object, if AfxBeginThread, it must be a global function, or write a static function, is generally Chuan In this pointer into the pointer then call a member function of this type function, used up too much trouble, the question now is can not have static or global function to realize it, so I realize this category, to the simplification of multi-threaded creation and closure of the operation.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MulThread
.........\Format.h
.........\MulThread.cpp
.........\MulThread.dsp
.........\MulThread.dsw
.........\MulThread.h
.........\MulThread.positions
.........\MulThread.rc
.........\MulThreadDlg.cpp
.........\MulThreadDlg.h
.........\ReadMe.txt
.........\res
.........\...\default1.bin
.........\...\MulThread.rc2
.........\resource.h
.........\StdAfx.cpp
.........\StdAfx.h
.........\WaitDlg.h
.........\Waiting.dll
.........\Waiting.lib
.........\Waiting_d.dll
.........\Waiting_d.lib
.........\YGEdit.cpp
.........\YGEdit.h
.........\YGMulThread.h
.........\Format.h
.........\MulThread.cpp
.........\MulThread.dsp
.........\MulThread.dsw
.........\MulThread.h
.........\MulThread.positions
.........\MulThread.rc
.........\MulThreadDlg.cpp
.........\MulThreadDlg.h
.........\ReadMe.txt
.........\res
.........\...\default1.bin
.........\...\MulThread.rc2
.........\resource.h
.........\StdAfx.cpp
.........\StdAfx.h
.........\WaitDlg.h
.........\Waiting.dll
.........\Waiting.lib
.........\Waiting_d.dll
.........\Waiting_d.lib
.........\YGEdit.cpp
.........\YGEdit.h
.........\YGMulThread.h