Boost logo

Boost Users :

From: Szilard Pataki (ceelurd_at_[hidden])
Date: 2008-01-28 11:11:25


Hello Ion,

I would like to use the interprocess library and some NPTL features
(pthread_setaffinity_np => assign a thread to a cpu) at the same time. The
pthread_setaffinity_np function is declared in /usr/include/nptl/pthread.h
(on my developer platform), but throughout the interprocess/boost headers I
can find

#include <pthread.h>

... which makes me think that /usr/include/pthread.h is included. Can I
simply swap in the interprocess .hpp files the include statements to this:

#include <nptl/pthread.h>

... or do you know of a cleaner solution?

I'm asking you this, because I'm using a trimmed down boost library
(interprocess + bare minimum from the rest of boost) and only in the
interprocess headers do I see pthread.h inclusion. Furthermore, I will have
to link against /lib64/tls/libpthread-2.3.4.so... do you foresee a problem
with that?

Many thanks,
Szilard



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