[Lazarus] PostMessage return value

Xiangrong Fang xrfang at gmail.com
Thu Sep 18 13:46:15 CEST 2014

2014-09-18 19:34 GMT+08:00 Michael Schnell <mschnell at lumino.de>:

> I think, in the other mail, I did explain how "Wait" is supposed to work
> in TThreadPool.
Initially, when the threadpool is created, Wait is hold by the main thread,
so the worker just wait there, no problem, but after the worker thread get
the CS, it started working, then RELEASE the CS.

This is when the problem arise: after worker release the CS, how do you
ensure it is the MAIN thread who will get the CS next, NOT the worker
thread again?

That is my question, which I don't think you answered.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140918/89b64fe4/attachment-0003.html>

More information about the Lazarus mailing list