@@ -62,7 +62,7 @@ class StatsManager final {
6262 const MeasureData& data, absl::Time now);
6363
6464 // Retrieves a copy of the data.
65- std::unique_ptr<ViewDataImpl> GetData () LOCKS_EXCLUDED (*mu_);
65+ std::unique_ptr<ViewDataImpl> GetData () ABSL_LOCKS_EXCLUDED (*mu_);
6666
6767 const ViewDescriptor& view_descriptor () const { return descriptor_; }
6868
@@ -72,33 +72,33 @@ class StatsManager final {
7272 absl::Mutex* const mu_; // Not owned.
7373 // The number of View objects backed by this ViewInformation, for
7474 // reference-counted GC.
75- int num_consumers_ GUARDED_BY (*mu_) = 1;
75+ int num_consumers_ ABSL_GUARDED_BY (*mu_) = 1;
7676
7777 // Possible types of stored data.
7878 enum class DataType { kDouble , kUint64 , kDistribution , kInterval };
7979 static DataType DataTypeForDescriptor (const ViewDescriptor& descriptor);
8080
81- ViewDataImpl data_ GUARDED_BY (*mu_);
81+ ViewDataImpl data_ ABSL_GUARDED_BY (*mu_);
8282 };
8383
8484 public:
8585 static StatsManager* Get ();
8686
8787 // Merges all data from 'delta' at the present time.
88- void MergeDelta (const Delta& delta) LOCKS_EXCLUDED (mu_);
88+ void MergeDelta (const Delta& delta) ABSL_LOCKS_EXCLUDED (mu_);
8989
9090 // Adds a measure--this is necessary for views to be added under that measure.
9191 template <typename MeasureT>
92- void AddMeasure (Measure<MeasureT> measure) LOCKS_EXCLUDED (mu_);
92+ void AddMeasure (Measure<MeasureT> measure) ABSL_LOCKS_EXCLUDED (mu_);
9393
9494 // Returns a handle that can be used to retrieve data for 'descriptor' (which
9595 // may point to a new or re-used ViewInformation).
9696 ViewInformation* AddConsumer (const ViewDescriptor& descriptor)
97- LOCKS_EXCLUDED (mu_);
97+ ABSL_LOCKS_EXCLUDED (mu_);
9898
9999 // Removes a consumer from the ViewInformation 'handle', and deletes it if
100100 // that was the last consumer.
101- void RemoveConsumer (ViewInformation* handle) LOCKS_EXCLUDED (mu_);
101+ void RemoveConsumer (ViewInformation* handle) ABSL_LOCKS_EXCLUDED (mu_);
102102
103103 private:
104104 // MeasureInformation stores all ViewInformation objects for a given measure.
@@ -118,7 +118,7 @@ class StatsManager final {
118118 absl::Mutex* const mu_; // Not owned.
119119 // View objects hold a pointer to ViewInformation directly, so we do not
120120 // need fast lookup--lookup is only needed for view removal.
121- std::vector<std::unique_ptr<ViewInformation>> views_ GUARDED_BY (*mu_);
121+ std::vector<std::unique_ptr<ViewInformation>> views_ ABSL_GUARDED_BY (*mu_);
122122 };
123123
124124 // TODO: PERF: Global synchronization is only needed for adding or
@@ -127,7 +127,7 @@ class StatsManager final {
127127 mutable absl::Mutex mu_;
128128
129129 // All registered measures.
130- std::vector<MeasureInformation> measures_ GUARDED_BY (mu_);
130+ std::vector<MeasureInformation> measures_ ABSL_GUARDED_BY (mu_);
131131};
132132
133133extern template void StatsManager::AddMeasure (MeasureDouble measure);
0 commit comments