Enumeration
GioMemoryMonitorWarningLevel
since: 2.64
Description
Memory availability warning levels.
Note that because new values might be added, it is recommended that applications check
GMemoryMonitorWarningLevel
as ranges, for example:
if (warning_level > G_MEMORY_MONITOR_WARNING_LEVEL_LOW)
drop_caches ();
Available since: 2.64
Members
Name | Description |
---|---|
G_MEMORY_MONITOR_WARNING_LEVEL_LOW |
Memory on the device is low, processes should free up unneeded resources (for example, in-memory caches) so they can be used elsewhere. |
G_MEMORY_MONITOR_WARNING_LEVEL_MEDIUM |
Same as |
G_MEMORY_MONITOR_WARNING_LEVEL_CRITICAL |
The system will soon start terminating processes to reclaim memory, including background processes. |