Topic: Threaded versions of localtime et al., was A sketch of a proposal.
Author: kanze@gabi-soft.fr
Date: Tue, 14 Jun 2005 09:03:56 CST Raw View
Graeme Prentice wrote:
> Yeah, localtime, along with a few other C features, can't be
> called from multiple threads. (How do you find out the
> thread-safety of "C" library functions with GCC?)
Which brings up another issue: I understand that there is some
discussion in the committee concerning adding threading to C++.
In this case, what do we do about such functions? Do we define
a multi-thread safe version, a la Posix? (If we also add
garbage collection, then there is no problem; just require them
to be multi-threaded. Except that then, we loose C -- and Posix
-- compatibility. Oh well...)
--
James Kanze GABI Software
Conseils en informatique orient e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S mard, 78210 St.-Cyr-l' cole, France, +33 (0)1 30 23 00 34
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]