зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1291347
- Make CacheFileContextEvictor::EvictEntries shutdown aware, r=honzab
This commit is contained in:
Родитель
8ca795c1c8
Коммит
67b220d054
|
@ -553,6 +553,14 @@ CacheFileContextEvictor::EvictEntries()
|
|||
}
|
||||
|
||||
while (true) {
|
||||
if (CacheObserver::ShuttingDown()) {
|
||||
LOG(("CacheFileContextEvictor::EvictEntries() - Stopping evicting due to "
|
||||
"shutdown."));
|
||||
mEvicting = true; // We don't want to start eviction again during shutdown
|
||||
// process. Setting this flag to true ensures it.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (CacheIOThread::YieldAndRerun()) {
|
||||
LOG(("CacheFileContextEvictor::EvictEntries() - Breaking loop for higher "
|
||||
"level events."));
|
||||
|
|
Загрузка…
Ссылка в новой задаче