[Lazarus] How does one add an event to a blocking system?

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Wed Oct 21 14:39:48 CEST 2015


Michael Schnell wrote:
> On 10/21/2015 01:44 PM, Bo Berglund wrote:
>> So if I use a thread to read data from the socket, how do I signal to
>> the main application that data are arriving using an event?
> TThread.Synchronize(), TThread.Queue()

Please remind us what a non-LCL program has to call to make sure that 
stuff is dequeued.

> In an "Application" (other than in a "Program" you also can use 
> "Application.QueueAsyncCall()".
> 
> You supposedly want to transfer Data to the main thread. Here IMHO it's 
> a nice idea to use Finalizers.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list