cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Multithreaded problem on HP-UX

From: Alexander Krasnostavsky <ALEXANDERKR_at_Amdocs.com>
Date: Wed, 25 Aug 2004 09:54:35 +0300

The following I found for gcc (see step 3):

A few preliminary steps you should take before beginning any pthread
coding is to:
1. add #include <pthread.h> in your .c or .h header file(s)
2. define the #define _REENTRANT macro somewhere in a common .h or .c
file
3. In your Makefile make sure gcc links against -lpthread
4. Optional: add -D_POSIX_PTHREAD_SEMANTICS to your Makefile (gcc flag)
for certain function calls like sigwait()

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Andrei Tarassov
Sent: Wednesday, August 25, 2004 09:12
To: libcurl development
Subject: RE: Multithreaded problem on HP-UX

I guess that this is for original cc shipped for HP-UX. Are there the
same kind of options for gcc?

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Alexander
Krasnostavsky
Sent: Wednesday, August 25, 2004 09:00
To: libcurl development
Subject: RE: Multithreaded problem on HP-UX

On HP multithreading option is "-mt":
cc manual:
-mt Sets various -D flags to enable multi-threading and
               also sets -lpthread. For details see HP C Online Help.

Check that you compiled with this option.

The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.
Received on 2004-08-25