Searched refs:LossyIncrement (Results 1 – 1 of 1) sorted by relevance
364 uint32 LossyIncrement(std::atomic<uint32>* counter) { in LossyIncrement() function372 return n != 0 && (LossyIncrement(&counter_) % n) == 0; in ShouldLog()385 const uint32 new_value = LossyIncrement(&counter_) + 1; in ShouldLog()391 LossyIncrement(&counter_); in ShouldLog()