Fixed up some #includes in mutex.h
PiperOrigin-RevId: 807378888
Change-Id: Ic4e11444b4839228c365c68321848c954bf67e63
diff --git a/absl/synchronization/mutex.h b/absl/synchronization/mutex.h
index dce8b8f..2062486 100644
--- a/absl/synchronization/mutex.h
+++ b/absl/synchronization/mutex.h
@@ -61,17 +61,15 @@
#include <atomic>
#include <cstdint>
#include <cstring>
-#include <iterator>
-#include <string>
#include "absl/base/attributes.h"
+#include "absl/base/config.h"
#include "absl/base/const_init.h"
#include "absl/base/internal/identity.h"
-#include "absl/base/internal/low_level_alloc.h"
#include "absl/base/internal/thread_identity.h"
#include "absl/base/internal/tsan_mutex_interface.h"
+#include "absl/base/macros.h"
#include "absl/base/nullability.h"
-#include "absl/base/port.h"
#include "absl/base/thread_annotations.h"
#include "absl/synchronization/internal/kernel_timeout.h"
#include "absl/synchronization/internal/per_thread_sem.h"
@@ -561,10 +559,10 @@
base_internal::PerThreadSynch* absl_nonnull w);
void Dtor();
- friend class CondVar; // for access to Trans()/Fer().
+ friend class CondVar; // for access to Trans()/Fer().
void Trans(MuHow absl_nonnull how); // used for CondVar->Mutex transfer
void Fer(base_internal::PerThreadSynch* absl_nonnull
- w); // used for CondVar->Mutex transfer
+ w); // used for CondVar->Mutex transfer
// Catch the error of writing Mutex when intending MutexLock.
explicit Mutex(const volatile Mutex* absl_nullable /*ignored*/) {}
@@ -797,7 +795,7 @@
Condition(
bool (*absl_nonnull func)(T* absl_nullability_unknown),
typename absl::internal::type_identity<T>::type* absl_nullability_unknown
- arg);
+ arg);
// Templated version for invoking a method that returns a `bool`.
//
@@ -1186,7 +1184,7 @@
inline Condition::Condition(
bool (*absl_nonnull func)(T* absl_nullability_unknown),
typename absl::internal::type_identity<T>::type* absl_nullability_unknown
- arg)
+ arg)
// Just delegate to the overload above.
: Condition(func, arg) {}