Index: src/core/SkTaskGroup.cpp |
diff --git a/src/core/SkTaskGroup.cpp b/src/core/SkTaskGroup.cpp |
index 6869f18235bd5fab3d510c5ea98f0caee0787bc0..345fd2fcb9a7fcb59ac2ca2f5de088c92315d344 100644 |
--- a/src/core/SkTaskGroup.cpp |
+++ b/src/core/SkTaskGroup.cpp |
@@ -165,7 +165,7 @@ ThreadPool* ThreadPool::gGlobal = NULL; |
SkTaskGroup::Enabler::Enabler(int threads) { |
SkASSERT(ThreadPool::gGlobal == NULL); |
- if (threads != 0) { |
+ if (threads != 0 && SkCondVar::Supported()) { |
ThreadPool::gGlobal = SkNEW_ARGS(ThreadPool, (threads)); |
} |
} |