搜索资源列表
MulThreadclass
- 感觉多线程确实麻烦,线程间要处理好同步与通讯,如果用CWinThread好一点,直接是一个线程对象,如果用AfxBeginThread,那必须定个全局函数,或者写个静态函数,一般是传个this指针进去,然后再用这个指针调用本类函数的成员函数,用起来比较麻烦,现在问题是能不能不用全局或者静态函数来实现呢,于是我实现了这个类,来所简化多线程的创建和关闭的操作。
Realization-of-Multithread-Program-Based-on-Callba
- 本文给出了基于回调函数的多线程应用程序实现方法。通过回调函数开辟子线程,而采用回调函数的消息响应函数实现具体的数据处理。因回调函数的消息响应函数可作为VC + + 某个类的成员函数,故可调用该类的其他成员函数和成员变量,从而避免了因采用过多的全局变量进行线程通信而降低系统效率-The met hod for realizing multit hread program based on callback function and Visual c++ is given in this paper
Theard
- 在类的成员函数中创建一个线程,并且回调成员函数示例。-In the class member function to create a thread, and the callback member function example.
Pthreadpool
- 使用pthread库,不仅提供全局函数的多线程方式,还提供类成员函数的多线程调用方式。(Using pthread library. Not only provides multithreading for global functions, but also provides multithread calling methods for class member functions.)
