
18 Jan
2005
18 Jan
'05
12:49 p.m.
Peter Dimov wrote:
Local static objects can be made safe by the compiler. The new cxx64 API requires it.
Interesting, I didn't know that!
They can also be made safe by using one of the following two approaches (pseudocode):
[...] Sorry, (my) misinterpretation. I meant that you can not assume that a local static variable is synchronized by the compiler because this is not required by the standard. Stefan