Is libstdc++ in stock egcs 1.1.2 thread-safe?
Shmulik Rippa
shmulik@Orbotech.COM
Wed Dec 22 03:01:00 GMT 1999
We have some problems when running a multithreaded program on a double
CPU computer under Linux. The problem seems to be always close to places
of dynamic memory allocation (new). We are compiling with the following
thread related compiler options:
-D_REENTRANT -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS
Under the above setting, is the implementation of new and delete
thread-safe or do I have to take care of synchronization issues (mutex
and the like) by myself?
Opinions expressed in various documentation regarding the thread-safety
of libstdc++ vary widely. To what extent libstdc++ implementation is
thread-safe? Or is it not thread-safe at all? (Please note that I am not
talking about STL).
Additional info:
glibc: 2.0.7
Linux kernel: 2.2.x
egcs: stock 1.1.2
libstdc++: from stock egcs 1.1.2.
Any help is greatly appreciated.
begin: vcard
fn: Shmuel Rippa
n: Rippa;Shmuel
org: Orbotech
adr: Orbotech, LTD;;POBox 215;Yavne;;;Israel
email;internet: shmulik@orbotech.com
title: Head of algorithms group
tel;work: +972-8-942-3872
tel;fax: +972-8-942-3800
tel;home: +972-3-674-0854
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
More information about the Gcc
mailing list