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.

-Michael
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to