[fpc-pascal] Question: Is there a global callback, when a thread gets terminated?

Marc Santhoff M.Santhoff at web.de
Tue Feb 12 19:46:26 CET 2019


On Tue, 2019-02-12 at 17:36 +0100, Sven Barth via fpc-pascal wrote:

> Not every LazLogger user knows that their code is run in a thread. And not
> every thread user knows that the code they are using is using LazLogger in
> turn.

Ok.

But if used that way, would LazLogger need to notice at all?

As I understand it the use case will be to discriminate and not mix up the log
entries from different threads. If the user does not want this at all, why
bother inside the logger code?

I can imagine race conditions or misplaced log lines. If used in debugging
code this is mostly irrelevant, imho...

--
Marc Santhoff <M.Santhoff at web.de>



More information about the fpc-pascal mailing list