chore: No ALL_CAPS (#1760)

Fixes #1680
This commit is contained in:
Alex Kremer
2025-01-02 11:39:31 +00:00
committed by GitHub
parent efe5d08205
commit 820b32c6d7
361 changed files with 10061 additions and 9724 deletions

View File

@@ -30,18 +30,18 @@ namespace util::impl {
UIntTagGenerator::TagType
UIntTagGenerator::next()
{
static std::atomic_uint64_t num{0};
return num++;
static std::atomic_uint64_t kNUM{0};
return kNUM++;
}
UUIDTagGenerator::TagType
UUIDTagGenerator::next()
{
static boost::uuids::random_generator gen{};
static std::mutex mtx{};
static boost::uuids::random_generator kGEN{};
static std::mutex kMTX{};
std::lock_guard const lk(mtx);
return gen();
std::lock_guard const lk(kMTX);
return kGEN();
}
} // namespace util::impl