Mercurial > hg > svcore
diff system/System.h @ 168:04baa690f90d
* Start adding StorageAdviser class to determine whether caches should be
on disc or in memory
author | Chris Cannam |
---|---|
date | Mon, 25 Sep 2006 13:44:05 +0000 |
parents | 4b2ea82fd0ed |
children | b23eea68357e |
line wrap: on
line diff
--- a/system/System.h Fri Sep 22 16:46:10 2006 +0000 +++ b/system/System.h Mon Sep 25 13:44:05 2006 +0000 @@ -75,6 +75,14 @@ enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus }; extern ProcessStatus GetProcessStatus(int pid); +// Return a vague approximation to the number of free megabytes of real memory. +// Return -1 if unknown. +extern int GetRealMemoryMBAvailable(); + +// Return a vague approximation to the number of free megabytes of disc space +// on the partition containing the given path. Return -1 if unknown. +extern int GetDiscSpaceMBAvailable(const char *path); + #include <cmath> extern double mod(double x, double y);