Apal
July 23rd, 2005, 12:12 PM
I want to start another worker thread in a worker thread.
But the worker thread never starts.
Here is the code:
UINT Thread2(LPVOID pParam)
{
AfxMessageBox("Thread Start");
return 0;
}
UINT Thread1(LPVOID pParam)
{
..........;
..........;
AfxBeginThread(Thread2, THREAD_PRIORITY_NORMAL, 0, 0, NULL)
..........;
..........;
return 0;
}
How to start a another worker thread in a worker thread?
Thanks.
But the worker thread never starts.
Here is the code:
UINT Thread2(LPVOID pParam)
{
AfxMessageBox("Thread Start");
return 0;
}
UINT Thread1(LPVOID pParam)
{
..........;
..........;
AfxBeginThread(Thread2, THREAD_PRIORITY_NORMAL, 0, 0, NULL)
..........;
..........;
return 0;
}
How to start a another worker thread in a worker thread?
Thanks.