Any member function as a wrapper parameter package EX

xiaoxiao2021-03-06  99

// threadhelper.cpp: Implementation of the threadhelper class.////

#include "threadhelper.h"

#include #include

Class A: Public Threadif {DWORD ThreadProc (Void * Param) {if (param) :: MessageBox (null, (char *) param, "threadhelper", mb_ok; else :: MessageBox (null, "a", "Threadhelper ", MB_OK); RETURN 0;}; public: a () {threadStart ();};

Void main () {threadif_ex aa; aa.threadstart ();

A abc; a b; abc.threadstart ("aaa"); abc.threadstart ("bbb");

Printf ("abc.count (thread (thread) =% d / r / n", abc.count ());

Printf ("press any key to exit / r / n"); getCh ();}

转载请注明原文地址:https://www.9cbs.com/read-104102.html

New Post(0)