[fpc-devel] Threads and alot of crap continued
JeLlyFish.software at gmx.net
Wed Nov 8 10:58:10 CET 2006
On Wednesday 08 November 2006 09:42, Michael Van Canneyt wrote:
> On Wed, 8 Nov 2006, Vinzent Hoefler wrote:
> > On Wednesday 08 November 2006 09:16, Michael Van Canneyt wrote:
> > > On Wed, 8 Nov 2006, Michael Schnell wrote:
> > > > > As for general use, you can't do a Timer this way.
> > > >
> > > > Right ! The beauty of TTimer (and GUI events as well) is that
> > > > it does not work in a thread. Otherwise it e.g. would not be
> > > > possible to do GUI stuff in a timer event, as VCL and LCL are
> > > > not thread save (and probably can't be made thread save).
> > >
> > > It can't because X-Windows or MS-Windows are not thread-safe.
> > Yeah, right. And threading in DOS is not possible either, because
> > DOS is non-reentrant, is it?
> I don't know. I didn't make any statements about DOS, AFAIK.
No you didn't. But I heard the same before and yet there *is* a
thread-safe implementation on top of GTK (which isn't thread-safe,
either) and there *are* threading implementations under DOS.
So I'd be careful with such "it can't"s. ;)
More information about the fpc-devel