07.03.2013 Views

Multithreading Multi-Threaded Programming

Multithreading Multi-Threaded Programming

Multithreading Multi-Threaded Programming

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!