On 16.07.2017 07:32, Martin Schreiber wrote:
TMSEthread.Queue ----> ?
application.postevent(). Often application.lock()/unlock() is more convenient.
This is a decent way in the mse-world, as here you supposedly always
have a full blown "application" (even "nonGUI"), while in Lazarus only a
GUI application features a queue that can handle events, while non-LCL
enabled (or "non-GUI") programs can use TThread, but not TApplication.
Nonetheless, there, you still can use TThread.Queue (and
TThread.Synchronize) if you implement the fetch from the queue yourself
by "checksynchronize()", as the queue for TThread.Queue and
TThread.Synchronize itself is implemented in the fpc RTL and does not
need the LCL.
This said, IMHO, providing TMSEthread.Queue does seem appropriate.
-Michael
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk