[Lazarus] Enqueuing a callback from a thread via other class - or am I overcomplicating this ?
Lukasz Sokol
el.es.cr at gmail.com
Wed Jun 14 15:01:09 CEST 2017
On 14/06/17 11:33, Mattias Gaertner via Lazarus wrote:
> On Wed, 14 Jun 2017 11:12:11 +0100
> Lukasz Sokol via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
>> [...]
>> SomeClassLockedList := SomeClassList.LockedList; // there are try/excepts around all here, but did not want to muddle the picture
>> Queue(TSomeClass(SomeClassLockedList.Items[i]).Processed);
>
> Queue(@TSomeClass(SomeClassLockedList.Items[i]).Processed);
> ^
>
> Mattias
>
Thanks! looks so easy in hindsight ;) same the callbacks need to be assigned with the @ in front :)
-L.
More information about the Lazarus
mailing list