Am 26.09.2014 10:58 schrieb "Michael Van Canneyt" <mich...@freepascal.org>: > > > > On Fri, 26 Sep 2014, Martin Schreiber wrote: > >> On Friday 26 September 2014 10:38:36 Michael Van Canneyt wrote: >>>> >>>> Again have a look at MSEgui, tobjectlinker in mseclasses.pas. It is not >>>> so easy to implement as it seems. ;-) >>> >>> >>> It is. Depends on your definition of difficult, of course. >>> >> Or the implemented functionality. > > > Absolutely. A signaling mechanism, synchronous, is not hard. > > If you want asynchronous, or if you want the signal executed in the context of a thread in case of multiple threads, that is another matter. > > Although I am having difficulty seeing how you would decide which signal must be executed in what thread... an object does not automatically belong to a thread...
In Qt it does. Each QObject has a thread it is owned by and thus the signal handling mechanism knows to which thread to queue to deliver a signal to a certain object. Regards, Sven
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel