[Lazarus] PostMessage return value

Xiangrong Fang xrfang at gmail.com
Mon Sep 15 14:19:55 CEST 2014

2014-09-15 17:23 GMT+08:00 Michael Schnell <mschnell at lumino.de>:

> In that case I definitely would use Application.QueuAsyncCall.

If I understand correct, from this page:


QueueAsyncCall is, like what its name suggest, doing this in asynchronous
favor -- it execute queued method in the next message loop (while
Application.ProcessMessages takes place, right?).

But what I need PostMessage for is to notify main thread (or another
thread) that a worker thread finished its job, so that the thread manager
can start a new thread to do the remaining work.

Anyway, is PostMessage considered "deprecated" or "shall be used on windows
only"?   Is there a better way to do what I want?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140915/305d1bbd/attachment-0003.html>

More information about the Lazarus mailing list