help-gplusplus
[Top][All Lists]
Advanced

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

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


From: Paul Pluzhnikov
Subject: Re: Operators 'new', 'delete' and thread safety.
Date: Tue, 17 Apr 2007 06:56:42 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

ddtl <this@is.invalid> writes:

> 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++? 

Yes, on all platforms where malloc is thread-safe. In practice
that's "all platforms that support threads" in general, and all
Linux/glibc versions since 1996.

> If yes, is it documented somewhere?

Probably, but I do not have any references for this.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

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