[cpp-threads] Memory modelcounterproposal:synchronizationoperations

Andrei Alexandrescu andrei at metalanguage.com
Fri May 27 21:25:22 BST 2005


Alexander Terekhov wrote:
> static(synchronized) X * p = new X;

So 'synchronized' would be a contextual keyword. C++ doesn't have any 
(although I personally like them), and as such we might encounter 
resistance.

Maybe the uglier

static "once" vardecl

might have more success.

Andrei




More information about the cpp-threads mailing list