Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,12 @@ class CacheEvictionThread final : public Logger::Loggable<Logger::Id::cache_filt
*/
void terminate();

// These two mutexes are never held at the same time. We signify this by requiring
// that both be 'acquired before' the other, since there is no exclusion annotation.
absl::Mutex mu_ ABSL_ACQUIRED_BEFORE(cache_mu_);
// These two mutexes are never held at the same time; no ordering annotation is needed.
absl::Mutex mu_;
bool signalled_ ABSL_GUARDED_BY(mu_) = false;
bool terminating_ ABSL_GUARDED_BY(mu_) = false;

absl::Mutex cache_mu_ ABSL_ACQUIRED_BEFORE(mu_);
absl::Mutex cache_mu_;
// We must store the caches as unowned references so they can be destroyed
// during config changes - that destruction is the only signal that a cache
// instance should be removed.
Expand Down
Loading