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