[Lazarus] DebugLn thread safety

Michael Schnell mschnell at lumino.de
Wed Mar 30 10:08:57 CEST 2011


On 03/30/2011 09:28 AM, cobines wrote:
> It seems it is enough to protect the call to DebugLn with a critical section:
IMHO, not a good idea at all, as DebugLn, being a debug feature is 
supposed to be as non-intrusive as possible. And a critical section 
might stall the thread for an unforeseeable amount of time and kill the 
behavior that made you decide to put the code in question into a thread.

-Michael




More information about the Lazarus mailing list