Boost logo

Boost Users :

Subject: Re: [Boost-users] problems with boost::thread::native_handle()
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2009-12-03 11:00:44

Carlos Casado Cascado <quierosermacgyver_at_[hidden]> writes:

> Hello, my name is Carlos Casado, i work at the Malaga univeristy in Spain. I´m
> working with a robotic arm and we use boost thread library. We need give some
> thread priority, we want use the thread's original handle (pthread) because we
> can manage priority with pthread_setschedparam () .
> The problem is that we can´t use native_handle() because it is not defined. We
> have a RT ubuntu machine with boost thread 1.35 version

native_handle() wasn't implemented for pthread in Boost 1.35. I suggest
you upgrade to a later version. e.g. Boost 1.41 has native_handle() for
pthread platforms.


Author of C++ Concurrency in Action
just::thread C++0x thread library   
Just Software Solutions Ltd
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976

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