help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Operators 'new', 'delete' and thread safety.


From: ddtl
Subject: Operators 'new', 'delete' and thread safety.
Date: Tue, 17 Apr 2007 16:21:06 +0300

Hello everybody.

Is it safe to use operators 'new' and 'delete' in a multithreaded
programs, that is: are those operators thread-safe in a current
implementation of g++? If yes, is it documented somewhere?

I use g++ with the following configuration:

Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)

ddtl.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]