Searched refs:disable_counter (Results 1 – 1 of 1) sorted by relevance
35 THREADLOCAL int disable_counter; variable36 bool DisabledInThisThread() { return disable_counter > 0; } in DisabledInThisThread()37 void DisableInThisThread() { disable_counter++; } in DisableInThisThread()39 if (!disable_counter && common_flags()->detect_leaks) { in EnableInThisThread()43 disable_counter--; in EnableInThisThread()