enabling boost::threads for HP-UX

Hi, I want to use boost on HP-UX together with gcc-3.3.2. As I figured out that thread-support is disabled (BOOST_DISABLE_THREADS is defined in file boost/config/platform/hpux.hpp). Up gcc-3.3 posix-threads are supported on HP-UX-plattform (http://gcc.gnu.org/install/specific.html#hppa*-hp-hpux11). Is it then save to remove #define BOOST_DISABLE_THREADS in boost/config/platform/hpux.hpp? with best regards, Oliver -- "Der Spezialist ist ein Barbar, dessen Unwissenheit nicht allumfassend ist." Master's Voice, S.LEM

Oliver Kowalke wrote:
You have to remove #define BOOST_DISABLE_THREADS and insert: # define BOOST_HAS_THREADS # define BOOST_HAS_PTHREADS That's what we've done, ¡and it works! Best regards, Raúl Huertas Díaz ************************************************************************************************************************************************ *La información contenida en este mensaje de correo electrónico es confidencial y puede revestir el carácter de reservada. * *Está dirigida exclusivamente a la persona destinataria. * *El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no están autorizados y pueden ser ilegales.* *Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo. * *The information in this e-mail is confidential and may be legally privileged. * *It is intended solely for the addressee. * *Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful. * *If you are not the intended recipient, please delete this e-mail. * ************************************************************************************************************************************************

Thanks for the info, the patches below are going into cvs now, one thing to note: you must have built the compiler with --enable-threads, otherwise Boost threading support will still be forced off (if the std lib isn't thread safe, neither will Boost be whatever you do), but of course you knew that anyway :-) John. Index: platform/hpux.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/config/platform/hpux.hpp,v retrieving revision 1.13 diff -r1.13 hpux.hpp 24,26c24,32 < #ifdef __GNUC__ < // GNU C on HP-UX does not support threads (checked up to gcc 3.3) < # define BOOST_DISABLE_THREADS ---
participants (3)
-
John Maddock
-
Oliver Kowalke
-
Raul Huertas