Skip to content

Commit

Permalink
Merge pull request #1 from cancecen/absl_guarded_by
Browse files Browse the repository at this point in the history
Use ABSL_GUARDED_BY instead of GUARDED_BY.
  • Loading branch information
cancecen authored Sep 1, 2023
2 parents ce7f5a2 + c040901 commit d0ef002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spectator/registry.h
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -106,7 +107,7 @@ struct single_table_state {
// was previously registered as a different type
absl::flat_hash_map<IdPtr, std::shared_ptr<StatefulMeter>, std::hash<IdPtr>,
std::equal_to<IdPtr>>
meters_ GUARDED_BY(mutex_);
meters_ ABSL_GUARDED_BY(mutex_);
};

template <typename State, typename Types = typename State::types>
Expand Down

0 comments on commit d0ef002

Please sign in to comment.