[fpc-devel] Threads and alot of crap continued
mschnell at lumino.de
Wed Nov 8 11:30:01 CET 2006
> Well, I don't consider it beautiful, I consider it a hack. :)
It's beautiful, as the user does not need to care about mutually exclude
access of the objects that are used both in the main line code and the
timer callbacks. Most "application programmers" would not be able to
deal with this at all and produce nothing but buggy programs.
Additionally as X-Windows and MS-Windows are not thread save in such an
environment it would not be possible to do GUI stuff in a timer callback.
Of course there _are_ reasons to have preemptive timer callbacks and
providing decent means for that would be a great plus of FPCs.
More information about the fpc-devel