Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: tools/threadpool/CondVar.h

Issue 371853005: Move threadpool code from include/utils to tools/threadpool. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gyp Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/skpdiff/SkDiffContext.cpp ('k') | tools/threadpool/CondVar.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « tools/skpdiff/SkDiffContext.cpp ('k') | tools/threadpool/CondVar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698