Added new function vm_low_memory_state() that returns the current low

memory status.
Added new B_NO_LOW_MEMORY constant for the usual case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15551 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-12-15 21:30:28 +00:00
parent 127e973b5d
commit 1534aa236c
2 changed files with 32 additions and 10 deletions
+2
View File
@@ -11,6 +11,7 @@
/* warning levels for low memory handlers */
enum {
B_NO_LOW_MEMORY = 0,
B_LOW_MEMORY_NOTE,
B_LOW_MEMORY_WARNING,
B_LOW_MEMORY_CRITICAL,
@@ -23,6 +24,7 @@ extern "C" {
#endif
status_t vm_low_memory_init(void);
int32 vm_low_memory_state(void);
void vm_low_memory(size_t requirements);
// these calls might get public some day