<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 09/15/2014 02:19 PM, Xiangrong Fang
wrote:<br>
</div>
<blockquote
cite="mid:CAP93jB3Xo6B20_G32bLLxADxgnZ0xWW6YtPnCJq52w0jPgKnYQ@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra">
<div class="gmail_quote">
<div class="gmail_default" style=""><font face="courier new,
monospace"><br>
</font></div>
<div class="gmail_default" style=""><font face="courier new,
monospace">But what I need PostMessage for is to notify
main thread (or another thread)</font><br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<font face="courier new, monospace">You can only notify the main
thread. There is no (standard) means to notify another </font>thread,
as they don't have an event queue. <br>
<br>
OTOH a worker thread is allowed to wait a long time for an event (e.
g via TCriticalSection), while doing this in the main thread would
freeze the GUI. <br>
<br>
-Michael<br>
</body>
</html>