summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/MainThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/MainThread.cpp')
-rw-r--r--JavaScriptCore/wtf/MainThread.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/JavaScriptCore/wtf/MainThread.cpp b/JavaScriptCore/wtf/MainThread.cpp
index 6178420..a5f2346 100644
--- a/JavaScriptCore/wtf/MainThread.cpp
+++ b/JavaScriptCore/wtf/MainThread.cpp
@@ -149,8 +149,7 @@ void dispatchFunctionsFromMainThread()
MutexLocker locker(mainThreadFunctionQueueMutex());
if (!functionQueue().size())
break;
- invocation = functionQueue().first();
- functionQueue().removeFirst();
+ invocation = functionQueue().takeFirst();
}
invocation.function(invocation.context);