Page 1 of 1

Using threads

PostPosted: Feb 27, 2003 @ 11:50pm
by Pam

PostPosted: Feb 28, 2003 @ 12:06am
by Presto

PostPosted: Feb 28, 2003 @ 12:09am
by Pam

PostPosted: Feb 28, 2003 @ 12:24am
by Presto

PostPosted: Feb 28, 2003 @ 12:33am
by Pam

PostPosted: Feb 28, 2003 @ 12:37am
by Pam

PostPosted: Feb 28, 2003 @ 12:40am
by adde

PostPosted: Feb 28, 2003 @ 12:43am
by adde

PostPosted: Feb 28, 2003 @ 12:51am
by Pam

PostPosted: Feb 28, 2003 @ 2:06am
by fzammetti

PostPosted: Feb 28, 2003 @ 3:32am
by adde

PostPosted: Feb 28, 2003 @ 3:47am
by fzammetti

PostPosted: Feb 28, 2003 @ 4:54am
by adde
Hmm, ok. Cool.

What I ment to say was that you don't have to define the LoadingThreadFunc() as part of your class at all. You can just define it at the top of your file (in which you create the thread).

BUT, having thought about this I must agree that your way is much better. Defining the LoadingThreadFunc() as a private static function will hide the function from the world, which is exactly what we want. Global functions (and members in perticular) should be avoided as far as possible.

So, the mistake was clearly mine and I will change the code of my Thread class immediately.

Thanks Frank.