LowMemoryTask Class Reference
|
Task Name | LowMemoryTask |
Interfaces | None |
Services | None |
The LowMemoryTask monitors memory pressure through the default MemoryMonitor providing task. The following table describes the action taken by this task at each memory level.
The following table describes the action taken by this task at each memory level.
Memory State | Action |
---|---|
MemoryMonitor::MemNormal | No action. |
MemoryMonitor::MemLow | The quitIfInvisible() message is sent to all the applications marked expendable or important that are in the lazy-application-shutdown state. These are applications that have ended but have been kept loaded in case they are run again. Also, the RecoverMemory() message is sent to the QPE/System channel, which can be used by running applications to trigger recovering memory and freeing caches. |
MemoryMonitor::MemVeryLow | A quit() message is sent to one process. If there are processes running that are marked expendable, one of these is told to quit. Otherwise, if there are processes running that are marked important, one of these is told to quit. Otherwise, no process is told to quit. |
MemoryMonitor::MemCritical | A kill() signal is sent to one process. If there are processes running that are marked expendable, one of these is killed. Otherwise, if there are processes running that are marked important, one of these is killed. Otherwise, no process is killed, and if the system finally runs out of memory, Linux will kill a process according to its own rules. |
Although the LowMemoryTask is notified of all memory state changes, no action is taken when the memory state improves.
This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.
Destroys the LowMemoryTask instance.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com