Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Thread and thread-priority
From: Leo Carreon (lcarreon_at_[hidden])
Date: 2011-10-10 20:06:29


Hi Andrej,

If I'm not mistaken, you use the thread::native_handle() function to call a
platform specific API to change the thread priority. This means on Windows
you need to use a Windows thread API function or on UNIX/Linux you use a
POSIX thread API function using the value returned by the
thread::native_handle() function.

Regards,
Leo

-----Original Message-----
From: Andrej van der Zee
Sent: Tuesday, October 11, 2011 10:29 AM
To: boost-users_at_[hidden]
Subject: [Boost-users] Boost.Thread and thread-priority

Hi,

I have a question about thread priority in combination with
Boost.Thread. I implemented a pool of threads that reads data-pkts
from a work-queue in user-space. The main-thread receives data-packets
from the kernel, copies them into user-space and places them in this
data-queue. It is important that the kernel buffers do not overflow
and therefor I thought raising the priority of the main-thread is a
good idea. My question is would this *really* help? And how do I
change priority with Boost.Thread?

Cheers,
Andrej
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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