Content deleted Content added
Undid revision 457396097 by 138.163.128.41 (talk): In most languages != is for not-equal not assignment |
{{fact}} was at double-checked locking wrt it being an antipattern, so I expect it should be here, too. |
||
Line 27:
==Caveat==
Although this [[Optimization (computer science)|optimization]] is useful in [[system programming]] it should be avoided in high level [[concurrent programming]] unless all constraints are clear and understood. One example of bad usage is a similar [[programming idiom|idiom]] called [[double-checked locking]], which is listed as an [[anti-pattern]]{{Fact|date=February 2012}}.
==See also==
|