[Lazarus] Enqueuing a callback from a thread via other class - or am I overcomplicating this ?

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jun 14 12:33:25 CEST 2017


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


More information about the Lazarus mailing list