A little more WebSQLDatabase thread safety.
authormichaeln@google.com <michaeln@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Oct 2011 23:07:35 +0000 (23:07 +0000)
committermichaeln@google.com <michaeln@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Oct 2011 23:07:35 +0000 (23:07 +0000)
commitdd90b369d28ea74b70de235632225a77e02ae367
treebe8ec15dbca8bdc7ff03c08d3f93f9ef2dd1bdad
parentc3bbce717d50066532545886bb5f5a6a37d4f9c7
A little more WebSQLDatabase thread safety.
https://bugs.webkit.org/show_bug.cgi?id=69277

- switch to using AtomicallyInitializedStatic where appropiate
- avoid using some Strings across threads

Reviewed by David Levin.

Existing tests apply.

* storage/AbstractDatabase.cpp:
(WebCore::guidMutex):
(WebCore::guidToVersionMap):
(WebCore::guidToDatabaseMap):
(WebCore::guidForOriginAndName):
(WebCore::AbstractDatabase::databaseInfoTableName):
(WebCore::AbstractDatabase::AbstractDatabase):
(WebCore::AbstractDatabase::performOpenAndVerify):
(WebCore::AbstractDatabase::getVersionFromDatabase):
(WebCore::AbstractDatabase::setVersionInDatabase):
* storage/AbstractDatabase.h:
* storage/chromium/DatabaseTrackerChromium.cpp:
(WebCore::DatabaseTracker::tracker):
* storage/chromium/QuotaTracker.cpp:
(WebCore::QuotaTracker::instance):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/storage/AbstractDatabase.cpp
Source/WebCore/storage/AbstractDatabase.h
Source/WebCore/storage/chromium/DatabaseTrackerChromium.cpp
Source/WebCore/storage/chromium/QuotaTracker.cpp