From c040901fea1d36e01b0c32321c2931ae7a4f242e Mon Sep 17 00:00:00 2001 From: Can Cecen Date: Fri, 1 Sep 2023 12:45:51 -0700 Subject: [PATCH] Use ABSL_GUARDED_BY instead of GUARDED_BY. --- spectator/registry.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spectator/registry.h b/spectator/registry.h index 0154bd3..1802e92 100644 --- a/spectator/registry.h +++ b/spectator/registry.h @@ -1,5 +1,6 @@ #pragma once +#include "absl/base/thread_annotations.h" #include "absl/container/flat_hash_map.h" #include "absl/synchronization/mutex.h" #include "config.h" @@ -106,7 +107,7 @@ struct single_table_state { // was previously registered as a different type absl::flat_hash_map, std::hash, std::equal_to> - meters_ GUARDED_BY(mutex_); + meters_ ABSL_GUARDED_BY(mutex_); }; template