make thread work when system is not busy

koen at vermeer.tv koen at vermeer.tv
Tue Sep 4 01:10:51 PDT 2007


>  Looking at the code, SetPriority() should in fact be called before
> Create() and not only before Run(). If it's called on a running thread
> then
> it indeed just changes the priority of the current thread instead which is
> questionably useful...

Just to be sure:
 - Does this apply to all ports?
 - Does this mean the sample (threads.cpp) is also wrong?
 - Does this mean that you can use SetPriority() to either set the
priority of a new thread when calling it before Create(), or to set the
priority of the calling thread when calling it at any other stage? So, in
the latter case, the created thread can just change its own priority, for
example in the Entry() function?

Thanks!

Koen





More information about the wx-users mailing list