[fpc-pascal] Question: Is there a global callback, when a thread gets terminated?
Michael Schnell
MSchnell at lumino.de
Fri Feb 8 10:09:24 CET 2019
> There are no "siblings".
>
> The use case here would be LazLogger. User code can call a function "Debugln"
> this calls a method on a global object.
> The object provides storage for log-level (by name), and indentation, and
> others.
So the logger software could check a Thradvar (I *suppose* they are initiated with Zero) and create or use an internal object the self of which is stored in the Threadvar and with that having an instance for any thread that calls "Debugln"
-Michael
More information about the fpc-pascal
mailing list