summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/qt/ThreadingQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/qt/ThreadingQt.cpp')
-rw-r--r--JavaScriptCore/wtf/qt/ThreadingQt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/JavaScriptCore/wtf/qt/ThreadingQt.cpp b/JavaScriptCore/wtf/qt/ThreadingQt.cpp
index 7f81646..8041dea 100644
--- a/JavaScriptCore/wtf/qt/ThreadingQt.cpp
+++ b/JavaScriptCore/wtf/qt/ThreadingQt.cpp
@@ -208,6 +208,11 @@ ThreadIdentifier currentThread()
return establishIdentifierForThread(currentThread);
}
+void yield()
+{
+ QThread::yieldCurrentThread();
+}
+
Mutex::Mutex()
: m_mutex(new QMutex())
{