资 源 简 介
a general purpose class for multithreaded applications. Derive your class from it, call the constructor with the proper number of threads and populate the lpfns member before starting threads.
The main advantage is that you do not need to bother with the details of making the static method separate from your class and then passing the this pointer to it. CMultithreaded allows you to have all of your class methods in-class, even if they are to be run on separate threads. It is also a good example of RAII.