summaryrefslogtreecommitdiff
path: root/Source/WTF/wtf/ParallelJobsGeneric.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WTF/wtf/ParallelJobsGeneric.h')
-rw-r--r--Source/WTF/wtf/ParallelJobsGeneric.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/WTF/wtf/ParallelJobsGeneric.h b/Source/WTF/wtf/ParallelJobsGeneric.h
index 731b9604a..52f4799f1 100644
--- a/Source/WTF/wtf/ParallelJobsGeneric.h
+++ b/Source/WTF/wtf/ParallelJobsGeneric.h
@@ -30,6 +30,8 @@
#if ENABLE(THREADING_GENERIC)
+#include <wtf/Condition.h>
+#include <wtf/Lock.h>
#include <wtf/RefCounted.h>
#include <wtf/Threading.h>
@@ -64,9 +66,9 @@ public:
void waitForFinish();
- static PassRefPtr<ThreadPrivate> create()
+ static Ref<ThreadPrivate> create()
{
- return adoptRef(new ThreadPrivate());
+ return adoptRef(*new ThreadPrivate());
}
static void workerThread(void*);
@@ -76,8 +78,8 @@ public:
bool m_running;
ParallelEnvironment* m_parent;
- mutable Mutex m_mutex;
- ThreadCondition m_threadCondition;
+ mutable Lock m_mutex;
+ Condition m_threadCondition;
ThreadFunction m_threadFunction;
void* m_parameters;