Ehsan Akhgari wrote:
On 2014-04-01, 8:10 PM, Martin Thomson wrote:count_type tmp = --mRefCnt; if (tmp == 0) { delete this; }And how do we enforce people to write code like the above example using the current Atomic interface?
Would WARN_UNUSED_RESULT help here, so that you remember to use the result of the -- operator?
-- Warning: May contain traces of nuts. _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

