<div dir="ltr"><div class="gmail_extra">If you are 100% sure that you can give such negative decrement that will be always bigger than you value.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Not very good way to program, but you can get atomic "read-and-reset" counter that can be ok for example for counters like network bytes.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>