зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1290481 - P7: Create a mutex lock on CacheQuotaClient for protected accessing directory padding file. r=bkelly
--HG-- extra : rebase_source : 5115d1d04083807dbe4a9cc8a388c62871e07fe9
This commit is contained in:
Родитель
65c21f0c77
Коммит
161d91b1ba
|
@ -67,6 +67,10 @@ GetBodyUsage(nsIFile* aDir, const Atomic<bool>& aCanceled,
|
|||
class CacheQuotaClient final : public Client
|
||||
{
|
||||
public:
|
||||
CacheQuotaClient()
|
||||
: mDirPaddingFileMutex("DOMCacheQuotaClient.mDirPaddingFileMutex")
|
||||
{ }
|
||||
|
||||
virtual Type
|
||||
GetType() override
|
||||
{
|
||||
|
@ -234,6 +238,10 @@ private:
|
|||
}
|
||||
|
||||
NS_INLINE_DECL_REFCOUNTING(CacheQuotaClient, override)
|
||||
|
||||
// Mutex lock to protect directroy padding files. It should only be acquired
|
||||
// in DOM Cache IO threads and Quota IO thread.
|
||||
mozilla::Mutex mDirPaddingFileMutex;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
Загрузка…
Ссылка в новой задаче