[Lazarus] Are multiple critical sections allowed in form or data module?

Michael Schnell mschnell at lumino.de
Mon Oct 10 10:17:08 CEST 2011


On 10/09/2011 09:55 AM, Mattias Gaertner wrote:
> On Sun, 9 Oct 2011 08:14:41 +0100
> Frank Church<vfclists at gmail.com>  wrote:
>
>> How is it determined whether a piece of code runs within the LCL or not?
> if GetCurrentThreadID=MainThreadID then
>
I understand his question as "How to find out whether a function in the 
RTL is allowed to be called by a thread? "

Here only the documentation can help. When it is not elaborated enough 
you need good intuition.

-Michael




More information about the Lazarus mailing list