21 template class SharedMutexImpl<true>;
22 template class SharedMutexImpl<false>;
30 static constexpr std::size_t kNumAnnotationMutexes = 251;
31 static std::array<std::mutex, kNumAnnotationMutexes> kAnnotationMutexes{};
32 auto index =
reinterpret_cast<uintptr_t
>(
ptr) % kNumAnnotationMutexes;
33 return std::unique_lock<std::mutex>(kAnnotationMutexes[index]);
35 return std::unique_lock<std::mutex>();
constexpr bool kIsSanitizeThread
—— Concurrent Priority Queue Implementation ——
std::unique_lock< std::mutex > sharedMutexAnnotationGuard(void *ptr)