[fpc-pascal] Current TThread
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Tue Dec 21 14:29:36 CET 2010
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.
More information about the fpc-pascal
mailing list