[Lazarus] Application.QueueAsyncCall()
Flávio Etrusco
flavio.etrusco at gmail.com
Thu Jan 21 19:26:05 CET 2010
2010/1/21 Flávio Etrusco <flavio.etrusco at gmail.com>:
> On Thu, Jan 21, 2010 at 9:17 AM, Brad Campbell <brad at wasp.net.au> wrote:
>> Flávio Etrusco wrote:
>>>
>>> On Wed, Jan 20, 2010 at 5:54 AM, Brad Campbell <brad at wasp.net.au> wrote:
>>>>
>>>> Is QueueAsyncCall() threadsafe?
>>>>
>>>
>>> In Delphi the queued method is run on the (context of) the main/GUI
>>> thread.
>>
>> Which is precisely what I want. The issue is not the context of the queued
>> method, but the method used to poke the event onto the application event
>> queue being threadsafe.
>>
>> I'm almost thinking of using a unix socket and using the socket in
>> AddEventHandler() to watch for a signal in the main loop.
>>
>> Brad
>
> Yes, the procedure itself is (meant to be) threadsafe.
>
> -Flávio
>
Oops, sorry! Scrap what I said :-$ I was thinking about Delphi
TThread.QueueAsync<something>... Lazarus' Application.TAsyncCallQueues
isn't threadsafe AFAICS from the code.
-Flávio
More information about the Lazarus
mailing list