Multithreading Multi-Threaded Programming
Multithreading Multi-Threaded Programming
Multithreading Multi-Threaded Programming
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
PostMessage inside the thread function<br />
UINT ComputeThreadProc(LPVOID pparams)<br />
{<br />
WaitForSingleObject (pparams-> hTerminateEvent, INFINITE) ;<br />
lTime = timeGetTime() ;<br />
PostMessage (pparams->hwnd, WM_COMPLETE, 0, lTime);<br />
}<br />
22<br />
Advanced Windows Network <strong>Programming</strong><br />
11/11/12