iwyu: //aos/mutex/...
The full include-list for aos/mutex/mutex.h:
<ostream> // for char_traits, operator<<, basic_ostream
"aos/ipc_lib/aos_sync.h" // for aos_mutex
"aos/macros.h" // for DISALLOW_COPY_AND_ASSIGN
"aos/type_traits/type_traits.h" // for shm_ok
"glog/logging.h" // for COMPACT_GOOGLE_LOG_FATAL, LOG, LogMessageFatal
The full include-list for aos/mutex/mutex.cc:
"aos/mutex/mutex.h"
"glog/logging.h" // for COMPACT_GOOGLE_LOG_FATAL, LOG, LogMessageFatal
The full include-list for aos/mutex/mutex.h:
<ostream> // for char_traits, operator<<, basic_ostream
"aos/ipc_lib/aos_sync.h" // for aos_mutex
"aos/macros.h" // for DISALLOW_COPY_AND_ASSIGN
"aos/type_traits/type_traits.h" // for shm_ok
"glog/logging.h" // for COMPACT_GOOGLE_LOG_FATAL, LOG, LogMessageFatal
The full include-list for aos/mutex/mutex_test.cc:
"aos/mutex/mutex.h"
<chrono> // for milliseconds, chrono
<memory> // for allocator, make_shared, _NonArray
<new> // for operator new
<thread> // for thread, sleep_for, this_thread
"aos/die.h" // for SetDieTestMode
"aos/ipc_lib/core_lib.h" // for shm_malloc_aligned
"aos/logging/implementations.h" // for SetImplementation
"aos/testing/test_logging.h" // for EnableTestLogging
"aos/testing/test_shm.h" // for TestSharedMemory
"aos/util/death_test_log_implementation.h" // for DeathTestLogImplementation
"gtest/gtest.h" // for AssertionResult, Message, TestPartResult, TestInfo, EXPECT_EQ, TEST_F, ASSERT_FALSE, DeathTest, EXPECT_DEATH, EXPECT_FALSE, EXPECT_TRUE, Test
Signed-off-by: Stephan Pleines <pleines.stephan@gmail.com>
Change-Id: I23594a4c1b78c4bd983ae9229fbfe9e12519abca
diff --git a/aos/mutex/mutex.h b/aos/mutex/mutex.h
index 869f429..dfc212a 100644
--- a/aos/mutex/mutex.h
+++ b/aos/mutex/mutex.h
@@ -1,6 +1,8 @@
#ifndef AOS_MUTEX_H_
#define AOS_MUTEX_H_
+#include <ostream>
+
#include "glog/logging.h"
#include "aos/ipc_lib/aos_sync.h"
@@ -8,9 +10,6 @@
#include "aos/type_traits/type_traits.h"
namespace aos {
-
-class Condition;
-
// An abstraction of a mutex that is easy to implement for environments other
// than Linux too.
// If there are multiple threads or processes contending for the mutex,