summaryrefslogtreecommitdiff
path: root/Source/WTF/wtf/ParallelJobsGeneric.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WTF/wtf/ParallelJobsGeneric.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
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;