<rdar://problem/9472883> and https://bugs.webkit.org/show_bug.cgi?id=61203
authorBrady Eidson <beidson@apple.com>
Fri, 20 May 2011 18:46:19 +0000 (18:46 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 23 May 2011 14:23:03 +0000 (11:23 -0300)
commit1aba52447192ce236234ae365d3bb9c698113bc7
treef6623f5db5e653b142e80f609dcfc489d603b893
parentac3c389606e01e138eeb978236b03986a98569a2
<rdar://problem/9472883> and https://bugs.webkit.org/show_bug.cgi?id=61203
Horrendous bug in callOnMainThreadAndWait

Reviewed by Sam Weinig.

* wtf/MainThread.cpp:
(WTF::dispatchFunctionsFromMainThread): Before signaling the background thread with the
  syncFlag condition, reacquire the mutex first.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86972 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wtf/MainThread.cpp