Boost.Thread solved my problem as it sets the thread priority to normal by default.
But, imagine I wanted to change it to "High" priority. Not that I'm going to do so, but I'm just curious. I've been reading boost.thread documentation but couldn't find a way to do so, so I did a bit of research and found the function "SetThreadPriority()" but I'm not sure how to use it.
I've tried this:
[...]
thread th1(threadfunction1,n);
SetThreadPriority(th1, HIGH_PRIORITY_CLASS);
[...]
But I get the error: 'SetThreadPriority' : cannot convert parameter 1 from 'boost::thread' to 'HANDLE'.
What am I doing wrong? Should I be doing this, even? Or is there another way to change the priority of a boost.thread rather than using this function?
I know this isn't related to the topic or to SFML but I just wanted to solve this.
Thanks to everyone for your help
I wish I could get rid of all the stuff in sfml-system -- thread, clock, etc. This has nothing to do with multimedia programming, but unfortunately it's one of the things that you can't avoid, you always need these basic features in this kind of apps.
I found those tools to be very useful, makes the librabry a all in one and it definitely helps those who're just starting, like me hehe.