update linux-ci to Ubuntu 24.04, apply clang-tidy fixes (#3998)

This commit is contained in:
Bart Louwers
2025-12-11 21:56:24 +01:00
committed by GitHub
parent 83d34c3a17
commit 5882a9c94e
117 changed files with 927 additions and 825 deletions

View File

@@ -29,7 +29,7 @@ private:
};
void addToIndex(std::size_t sz, void* ptr) {
std::lock_guard<std::mutex> mlk(indexMutex);
std::scoped_lock mlk(indexMutex);
FlagGuard flk(suppresIndexing);
allocationsCount++;
indexedMemorySize += sz;
@@ -38,7 +38,7 @@ void addToIndex(std::size_t sz, void* ptr) {
}
void removeFromIndex(void* ptr) {
std::lock_guard<std::mutex> mlk(indexMutex);
std::scoped_lock mlk(indexMutex);
FlagGuard flk(suppresIndexing);
auto it = memoryIndex.find(ptr);
if (it == memoryIndex.end()) return;
@@ -66,7 +66,7 @@ bool AllocationIndex::isActive() {
// static
void AllocationIndex::reset() {
std::lock_guard<std::mutex> mlk(indexMutex);
std::scoped_lock mlk(indexMutex);
FlagGuard flk(suppresIndexing);
memoryIndex.clear();
indexedMemorySize = 0;