2009-03-11 Darin Adler <darin@apple.com>
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Mar 2009 01:29:07 +0000 (01:29 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Mar 2009 01:29:07 +0000 (01:29 +0000)
        Reviewed by Mark Rowe.

        Don't use "::" in thread names because it is ugly!

        * loader/icon/IconDatabase.cpp:
        (WebCore::IconDatabase::open): Use "WebCore: " instead of "WebCore::".
        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::ResourceHandle::loaderRunLoop): Call this "WebCore: CFNetwork Loader" to make
        it clear this is a WebCore-created thread.
        * storage/DatabaseThread.cpp:
        (WebCore::DatabaseThread::start): Use "WebCore: " instead of "WebCore::".
        * storage/LocalStorageThread.cpp:
        (WebCore::LocalStorageThread::start): Use "WebCore: " instead of "WebCore::".
        * workers/WorkerThread.cpp:
        (WebCore::WorkerThread::start): Use "WebCore: " instead of "WebCore::".

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

WebCore/ChangeLog
WebCore/loader/icon/IconDatabase.cpp
WebCore/platform/network/cf/ResourceHandleCFNet.cpp
WebCore/storage/DatabaseThread.cpp
WebCore/storage/LocalStorageThread.cpp
WebCore/workers/WorkerThread.cpp

index d789966..aea47c3 100644 (file)
@@ -1,3 +1,21 @@
+2009-03-11  Darin Adler  <darin@apple.com>
+
+        Reviewed by Mark Rowe.
+
+        Don't use "::" in thread names because it is ugly!
+
+        * loader/icon/IconDatabase.cpp:
+        (WebCore::IconDatabase::open): Use "WebCore: " instead of "WebCore::".
+        * platform/network/cf/ResourceHandleCFNet.cpp:
+        (WebCore::ResourceHandle::loaderRunLoop): Call this "WebCore: CFNetwork Loader" to make
+        it clear this is a WebCore-created thread.
+        * storage/DatabaseThread.cpp:
+        (WebCore::DatabaseThread::start): Use "WebCore: " instead of "WebCore::".
+        * storage/LocalStorageThread.cpp:
+        (WebCore::LocalStorageThread::start): Use "WebCore: " instead of "WebCore::".
+        * workers/WorkerThread.cpp:
+        (WebCore::WorkerThread::start): Use "WebCore: " instead of "WebCore::".
+
 2009-03-11  Mark Rowe  <mrowe@apple.com>
 
         Rubber-stamped by Darin Adler.
index 23f5c13..8cf8d6b 100644 (file)
@@ -149,7 +149,7 @@ bool IconDatabase::open(const String& databasePath)
     // Lock here as well as first thing in the thread so the thread doesn't actually commence until the createThread() call 
     // completes and m_syncThreadRunning is properly set
     m_syncLock.lock();
-    m_syncThread = createThread(IconDatabase::iconDatabaseSyncThreadStart, this, "WebCore::IconDatabase");
+    m_syncThread = createThread(IconDatabase::iconDatabaseSyncThreadStart, this, "WebCore: IconDatabase");
     m_syncLock.unlock();
     if (!m_syncThread)
         return false;
index 243970a..c7fa3f3 100644 (file)
@@ -248,7 +248,7 @@ void* runLoaderThread(void *unused)
 CFRunLoopRef ResourceHandle::loaderRunLoop()
 {
     if (!loaderRL) {
-        createThread(runLoaderThread, 0, "CFNetwork::Loader");
+        createThread(runLoaderThread, 0, "WebCore: CFNetwork Loader");
         while (loaderRL == 0) {
             // FIXME: sleep 10? that can't be right...
             Sleep(10);
index 191a476..de9fffb 100644 (file)
@@ -54,7 +54,7 @@ bool DatabaseThread::start()
     if (m_threadID)
         return true;
 
-    m_threadID = createThread(DatabaseThread::databaseThreadStart, this, "WebCore::Database");
+    m_threadID = createThread(DatabaseThread::databaseThreadStart, this, "WebCore: Database");
 
     return m_threadID;
 }
index 92aa43e..da50c90 100644 (file)
@@ -50,7 +50,7 @@ bool LocalStorageThread::start()
     if (m_threadID)
         return true;
 
-    m_threadID = createThread(LocalStorageThread::localStorageThreadStart, this, "WebCore::LocalStorage");
+    m_threadID = createThread(LocalStorageThread::localStorageThreadStart, this, "WebCore: LocalStorage");
 
     return m_threadID;
 }
index b4f3ab4..11574de 100644 (file)
@@ -88,7 +88,7 @@ bool WorkerThread::start()
     if (m_threadID)
         return true;
 
-    m_threadID = createThread(WorkerThread::workerThreadStart, this, "WebCore::Worker");
+    m_threadID = createThread(WorkerThread::workerThreadStart, this, "WebCore: Worker");
 
     return m_threadID;
 }