how to change boost thread priority ?
12 Jun
2011
12 Jun
'11
3:04 a.m.
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.
12 Jun
12 Jun
7:17 p.m.
On Sun, Jun 12, 2011 at 5:04 AM, chyujian
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. http://www.boost.org/doc/libs/1_46_1/doc/html/thread/thread_management.html#... Hope that helps, Ovanes
4904
Age (days ago)
4904
Last active (days ago)
1 comments
2 participants
participants (2)
-
chyujian
-
Ovanes Markarian