[fpc-pascal] TThread.Queue vs TThread.Synchronize

Marco van de Voort marcov at stack.nl
Wed Feb 25 10:16:40 CET 2015


In our previous episode, Michael Schnell said:
> >> will make the instance remoce itself.
> > You need a full queue for that, since the mainthread might not run till the
> > thread next queue()'s.
> The fpc RTL does implement a full blown queue for managing TThread.Queue 
> and TThread.Synchronize.

But the only state in it is the self of the method to be synchronized. But
that can be enough (as Sven said)

Hadn't occured to me since I'm synchronizing msgs to a certain controller
context though (my "invoke" has a parameter controller and is run by the
controller .execute(self))



More information about the fpc-pascal mailing list