Index: tools/threadpool/CondVar.h |
diff --git a/include/utils/SkCondVar.h b/tools/threadpool/CondVar.h |
similarity index 85% |
rename from include/utils/SkCondVar.h |
rename to tools/threadpool/CondVar.h |
index 861a2aba8a057341d26f65110d8711daf7c50585..68e7fe2a2ce0aed39fa6ef0235bd23780fdb9ec1 100644 |
--- a/include/utils/SkCondVar.h |
+++ b/tools/threadpool/CondVar.h |
@@ -5,13 +5,17 @@ |
* found in the LICENSE file. |
*/ |
-#ifndef SkCondVar_DEFINED |
-#define SkCondVar_DEFINED |
+#ifndef CondVar_DEFINED |
+#define CondVar_DEFINED |
+ |
+#include "SkTypes.h" |
#ifdef SK_USE_POSIX_THREADS |
-#include <pthread.h> |
+ #include <pthread.h> |
#elif defined(SK_BUILD_FOR_WIN32) |
-#include <windows.h> |
+ #include <windows.h> |
+#else |
+ #error "CondVar isn't supported on this platform." |
#endif |
/** |
@@ -21,10 +25,10 @@ |
* Currently only supported on platforms with posix threads and Windows Vista and |
* above. |
*/ |
-class SkCondVar { |
+class CondVar { |
public: |
- SkCondVar(); |
- ~SkCondVar(); |
+ CondVar(); |
+ ~CondVar(); |
/** |
* Lock a mutex. Must be done before calling the other functions on this object. |