On Sun, Jun 12, 2011 at 5:04 AM, chyujian
<iamnortheastern@gmail.com> wrote:
I am new using boost thread, in my project I need to change the priority
of the threads, but I cannot find help in the documentation.
Boost threads and the upcoming C++0x provide a thread class member function to retrieve the underlying thread native handle. Using it you can call the operating system dependent function to set the appropriate thread priority (e.g. WinAPI, POSIX threads etc.).
Here is the description of thread::native_handle for 1.46.1.
Hope that helps,
Ovanes