Resource loads sometimes stall
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Dec 2012 21:25:22 +0000 (21:25 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Dec 2012 21:25:22 +0000 (21:25 +0000)
        https://bugs.webkit.org/show_bug.cgi?id=104976

        Apply the same quick an dirty fix to BlockingBoolResponseMap.

        * Shared/BlockingResponseMap.h:
        (BlockingBoolResponseMap::didReceiveResponse):

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

Source/WebKit2/ChangeLog
Source/WebKit2/Shared/BlockingResponseMap.h

index 9b054d5..6b833bf 100644 (file)
@@ -1,3 +1,13 @@
+2012-12-14  Alexey Proskuryakov  <ap@apple.com>
+
+        Resource loads sometimes stall
+        https://bugs.webkit.org/show_bug.cgi?id=104976
+
+        Apply the same quick an dirty fix to BlockingBoolResponseMap.
+
+        * Shared/BlockingResponseMap.h:
+        (BlockingBoolResponseMap::didReceiveResponse):
+
 2012-12-14  Anders Carlsson  <andersca@apple.com>
 
         Add a DownloadsProxyMap class in preparation for moving the downloads map away from WebContext
index b5fd7d7..c3c34ee 100644 (file)
@@ -91,7 +91,8 @@ public:
         ASSERT(!m_responses.contains(requestID));
 
         m_responses.set(requestID, response);
-        m_condition.signal();
+        // FIXME (NetworkProcess): Waking up all threads is quite inefficient.
+        m_condition.broadcast();
     }
 
 private: