[fpc-devel] Threads and alot of crap continued

Vinzent Hoefler JeLlyFish.software at gmx.net
Tue Nov 7 16:31:12 CET 2006


On Tuesday 07 November 2006 15:17, Ales Katona wrote:

> So eg: if you want to do something every 1000ms, you could put a
> TThread based timer in, and make it Sleep(1000) and then call the
> code, but you must be sure that your main thread cannot have
> conflicts if this code is called at any time (eg: variable writes
> etc.).

Of course, because the common concept of a timer is as asynchronous as 
in "multi-threaded" or even "interrupt".

You're not seriously trying to work around that simple fact, do you?


Vinzent.




More information about the fpc-devel mailing list