Thread pool?
-
Hi, Have anyone any sample how to do a thread pool to win32 with C++ ? Regards MiLa
-
Hi, Have anyone any sample how to do a thread pool to win32 with C++ ? Regards MiLa
I have a simple soucecode. I should not be a problem to implement it with MFC once you understand how it works (unfortinally the reverse is not so easy. MFC to simple function) Why does the program use other y pos than it was assigned? Sleep can solve bugs that is hard to find. Remove the comment to se the effect of sleep. _____________________________________________________________________________________ #include #include //Make sure you use Project->Settings->C/C++ ->Code Generation->Use runtime library->"Multithreaded dll" #include HANDLE hStdOut; char space[10]; DWORD test=0; #define MAX_CONCURRENT_THREADS 10 BOOL MyFunc(int x); HANDLE hEvent; void main(void) { hStdOut = GetStdHandle( STD_OUTPUT_HANDLE ); int x=0; hEvent = CreateEvent(0,0,0,0); while(x500000) _endthread(); } return 1; } Regards Andreas ================== The original message was: Hi,
Have anyone any sample how to do a thread pool
to win32 with C++ ?Regards
MiLa