USE(WEB_THREAD): More explicit WebThread initialization
[WebKit-https.git] / Source / WTF / ChangeLog
index db1342a3bfaf8f2eedbac46cec8039990700c515..911a3e5edb9cbf2b4e258e80c7add81121418686 100644 (file)
@@ -1,3 +1,26 @@
+2013-09-16  Joseph Pecoraro  <pecoraro@apple.com>
+
+        USE(WEB_THREAD): More explicit WebThread initialization
+        https://bugs.webkit.org/show_bug.cgi?id=121454
+
+        Reviewed by Benjamin Poulain.
+
+        Be more explicit when initializing WebThread only data.
+
+        * wtf/MainThread.h:
+        * wtf/MainThread.cpp:
+        (WTF::initializeWebThreadOnce):
+        (WTF::initializeWebThread):
+        Ensure one time initialization.
+
+        * wtf/mac/MainThreadMac.mm:
+        (WTF::initializeMainThreadPlatform):
+        (WTF::initializeWebThreadPlatform):
+        Move WebThread value initialization to its own function.
+
+        (WTF::isMainThread):
+        Remove no longer invalid assert if WebThread was not initialized.
+
 2013-09-16  Benjamin Poulain  <benjamin@webkit.org>
 
         Fix WebKit1 build after r155910