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.

Hope that helps,

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at