OomManager Class Reference
|
Constant | Value | Description |
---|---|---|
OomManager::Expendable | 0 | Expendable applications have lowest priority and will be killed first. |
OomManager::Important | 1 | Important applications should only be killed if no expendable applications are left to be killed. |
OomManager::Critical | 2 | Critical applications cannot be killed. |
This constrcutor creates a new OomManager instance.
Destroys the OomManager instance.
Returns a reference to the map of expendable processes. that maps application name to process id. The map can be empty.
Returns true if at least one of the running process is marked as being expendable.
Returns true if at least one of the running process is marked as being important.
Returns a reference to the map of important processes. that maps application name to process id. The map can be empty.
Insert a mapping from app to pid. The process pid must be in the running state, and it must be an instance of app. This function must be called when process pid enters the running state.
The value in /proc/pid/oom_adj is set to a value read from oom.conf according to whether the process is a critical, expendable, or important process.
Returns true if app is not marked important or critical.
Returns true if app is marked important.
Returns the application name of the process marked as t that has the biggest OOM score.
Remove the mapping from application app to its process id. This function must be called for any linux process started by the ApplicationLauncher, when the process is terminated for any reason.
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