[fpc-devel] Threads and alot of crap continued

Vinzent Hoefler JeLlyFish.software at gmx.net
Wed Nov 8 11:21:33 CET 2006

On Wednesday 08 November 2006 10:01, Michael Schnell wrote:

> But doing  a function call (or hence using a callback) does not change
> the thread context you are running in and thus you are still the same 
> thread. IOW: code lines are not _dedicated_ to a thread context.

Oh that, of course. Seems I got confused by all the talking that my code 
can't work at all, and started to think in TThread objects instead of 
execution context. Well, right. I wasn't going to write a task 
scheduler. ;)

But now ... rereading the post, the original text was "You can't just 
put a TTimer in which works in it's own thread and then calls some 
callback in it's own thread," and I still wonder why I shouldn't be 
able to do that (well, if TTimer would actually do what its name 
suggests and no-one else would change the subject to one particular 
Delphi-way-implementation called TTimer, when I am still talking about 
a timer object in general).


More information about the fpc-devel mailing list