Bug 1120631 - CacheEntry::mFileStatus made atomic/rel_acq. r=nfroyd, r=michal

This commit is contained in:
Honza Bambas 2015-02-13 07:55:00 -05:00
parent 8ebce48c30
commit 3db9b3351b

View File

@ -265,7 +265,11 @@ private:
nsCOMPtr<nsICacheEntryDoomCallback> mDoomCallback;
nsRefPtr<CacheFile> mFile;
nsresult mFileStatus;
// Using ReleaseAcquire since we only control access to mFile with this.
// When mFileStatus is read and found success it is ensured there is mFile and
// that it is after a successful call to Init().
::mozilla::Atomic<nsresult, ::mozilla::ReleaseAcquire> mFileStatus;
nsCOMPtr<nsIURI> mURI;
nsCString mEnhanceID;
nsCString mStorageID;