summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/ThreadingWin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/ThreadingWin.cpp')
-rw-r--r--JavaScriptCore/wtf/ThreadingWin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/JavaScriptCore/wtf/ThreadingWin.cpp b/JavaScriptCore/wtf/ThreadingWin.cpp
index c16be5a..a29fbbb 100644
--- a/JavaScriptCore/wtf/ThreadingWin.cpp
+++ b/JavaScriptCore/wtf/ThreadingWin.cpp
@@ -266,6 +266,11 @@ void detachThread(ThreadIdentifier threadID)
clearThreadHandleForIdentifier(threadID);
}
+void yield()
+{
+ ::Sleep(1);
+}
+
ThreadIdentifier currentThread()
{
return static_cast<ThreadIdentifier>(GetCurrentThreadId());