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.

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

Reply via email to