2007-11-12 Mark Rowe <mrowe@apple.com>
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Nov 2007 19:45:06 +0000 (19:45 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Nov 2007 19:45:06 +0000 (19:45 +0000)
        Fix deadlock on launch on the Mac.

        * loader/icon/IconDatabase.cpp:
        (WebCore::IconDatabase::open): Restore unlock that was mistakenly removed in r27717.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27719 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/loader/icon/IconDatabase.cpp

index 3b8a09ed72d1a0f04b77de51c7c7864ece2fcd2c..c44e621ee1751148f59f9041098789ee67c4fcd1 100644 (file)
@@ -1,3 +1,10 @@
+2007-11-12  Mark Rowe  <mrowe@apple.com>
+
+        Fix deadlock on launch on the Mac.
+
+        * loader/icon/IconDatabase.cpp:
+        (WebCore::IconDatabase::open): Restore unlock that was mistakenly removed in r27717.
+
 2007-11-12  Justin Haygood  <jhaygood@reaktix.com>
 
         Reviewed by Brady.
index ee78e51438a1f9e28d17bb772c2b804cdbb38b87..bf6df5a20d8762bd46d24498f859770116d7409d 100644 (file)
@@ -145,6 +145,7 @@ bool IconDatabase::open(const String& databasePath)
     // completes and m_syncThreadRunning is properly set
     m_syncLock.lock();
     m_syncThread = createThread(IconDatabase::iconDatabaseSyncThreadStart, this);
+    m_syncLock.unlock();
     if (!m_syncThread)
         return false;
     return true;