Kaynağa Gözat

core: cleanup

Daniele Bartolini 7 yıl önce
ebeveyn
işleme
77894d3fa3

+ 1 - 0
src/core/thread/condition_variable.cpp

@@ -6,6 +6,7 @@
 #include "core/error/error.h"
 #include "core/platform.h"
 #include "core/thread/condition_variable.h"
+#include "core/thread/mutex.h"
 
 #if CROWN_PLATFORM_POSIX
 	#include <pthread.h>

+ 1 - 1
src/core/thread/condition_variable.h

@@ -5,7 +5,7 @@
 
 #pragma once
 
-#include "core/thread/mutex.h"
+#include "core/thread/types.h"
 
 namespace crown
 {

+ 17 - 0
src/core/thread/types.h

@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2012-2018 Daniele Bartolini and individual contributors.
+ * License: https://github.com/dbartolini/crown/blob/master/LICENSE
+ */
+
+#pragma once
+
+namespace crown
+{
+struct AtomicInt;
+struct ConditionVariable;
+struct Mutex;
+struct ScopedMutex;
+struct Semaphore;
+struct Thread;
+
+} // namespace crown