Boost logo

Boost Users :

Subject: Re: [Boost-users] how to change boost thread priority ?
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2011-06-12 15:17:17


On Sun, Jun 12, 2011 at 5:04 AM, chyujian <iamnortheastern_at_[hidden]> 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.

http://www.boost.org/doc/libs/1_46_1/doc/html/thread/thread_management.html#thread.thread_management.thread.nativehandle

Hope that helps,
Ovanes



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net