On Tue, 21 Dec 2010, Mattias Gaertner wrote:
Hi, How to get the current TThread instance?
There is no documented method.
For example: I created a TThread and called a function, which calls a function .... One of those sub functions needs to call TThread.Synchronize, which needs as parameter the current TThread.
Pass on the TThread instance. You could use GetCurrentThreadID and a lookup list. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal