[fpc-devel] Re: Multi threading support
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Jul 31 19:33:35 CEST 2008
On Thu, 31 Jul 2008 16:22:01 +0200
"Graeme Geldenhuys" <graemeg.lists at gmail.com> wrote:
> On Thu, Jul 31, 2008 at 2:59 PM, Boian Mitov <mitov at mitov.com> wrote:
> > Hmm... it looks almost one to one copy from our code in Version
> > 4.0 of our libraries ;-) . Are you one of our customers, or you
> > have simply come with the same idea as us?
>
>
> I'm not Henri, but we did similar setting and auto-restoring mouse
> cursors in our Delphi applications. I can't imagine why I never
> thought of using the same idea for critical sections. :-)
I think, this sounds like a misuse of interfaces.
What you really need is an auto referenced class, that guarantees
order and short life time.
Mattias
More information about the fpc-devel
mailing list