Bug 1192194 - Make DOMStorageDBThead::mDBReady atomic. r=smaug

--HG--
extra : rebase_source : d4a9c888ef83efcfddf58c8e447f0f4b440a0c6a
This commit is contained in:
Honza Bambas 2015-08-07 05:00:00 -04:00
Родитель 050a672216
Коммит d2501443bc
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -10,6 +10,7 @@
#include "prthread.h"
#include "prinrval.h"
#include "nsTArray.h"
#include "mozilla/Atomics.h"
#include "mozilla/Monitor.h"
#include "mozilla/storage/StatementCache.h"
#include "nsString.h"
@ -292,7 +293,7 @@ private:
// Whether DB has already been open, avoid races between main thread reads
// and pending DB init in the background I/O thread
bool mDBReady;
Atomic<bool, ReleaseAcquire> mDBReady;
// State of the database initiation
nsresult mStatus;