[Lazarus] Are multiple critical sections allowed in form or data module?
Frank Church
vfclists at gmail.com
Sun Oct 9 09:14:41 CEST 2011
On 9 October 2011 07:30, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
> On Sun, 9 Oct 2011 00:22:10 +0100
> Frank Church <vfclists at gmail.com> wrote:
>
> > Are multiple critical sections allowed in form or data module?
> >
> > e.g. I have different datasets each with its own connection and queries
> that
> > threads need to lookup data from.
> >
> > Is it acceptable to have additional TCriticalSections on the form?
>
> Yes.
> I hope you are aware that all code accessing the LCL must run in the
> main thread.
>
> Mattias
>
>
Can you explain this?
Do you mean that TCriticalSection is part of the LCL and shouldn't be run
from within a thread, or that code within the thread or the critical section
must not run code accessing the LCL?
How is it determined whether a piece of code runs within the LCL or not?
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
--
Frank Church
=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111009/eedf796e/attachment-0003.html>
More information about the Lazarus
mailing list