Bug 1600906 - Make use of FlippedOnce in DatabaseInfo. r=dom-workers-and-storage-reviewers,ytausky

Depends on D55679

Differential Revision: https://phabricator.services.mozilla.com/D55680

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Giesecke 2019-12-04 14:21:51 +00:00
Родитель 2258438f9a
Коммит 74e0321d0f
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -5134,7 +5134,7 @@ struct ConnectionPool::DatabaseInfo final {
uint32_t mWriteTransactionCount;
bool mNeedsCheckpoint;
bool mIdle;
bool mCloseOnIdle;
FlippedOnce<false> mCloseOnIdle;
bool mClosing;
#ifdef DEBUG
@ -12010,7 +12010,7 @@ bool ConnectionPool::CloseDatabaseWhenIdleInternal(
CloseDatabase(dbInfo);
AdjustIdleTimer();
} else {
dbInfo->mCloseOnIdle = true;
dbInfo->mCloseOnIdle.EnsureFlipped();
}
return true;
@ -12120,7 +12120,6 @@ ConnectionPool::DatabaseInfo::DatabaseInfo(ConnectionPool* aConnectionPool,
mWriteTransactionCount(0),
mNeedsCheckpoint(false),
mIdle(false),
mCloseOnIdle(false),
mClosing(false)
#ifdef DEBUG
,