comparison 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
comparison
equal deleted inserted replaced
167:665342c6ec57 168:04baa690f90d
73 #endif /* ! _WIN32 */ 73 #endif /* ! _WIN32 */
74 74
75 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus }; 75 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus };
76 extern ProcessStatus GetProcessStatus(int pid); 76 extern ProcessStatus GetProcessStatus(int pid);
77 77
78 // Return a vague approximation to the number of free megabytes of real memory.
79 // Return -1 if unknown.
80 extern int GetRealMemoryMBAvailable();
81
82 // Return a vague approximation to the number of free megabytes of disc space
83 // on the partition containing the given path. Return -1 if unknown.
84 extern int GetDiscSpaceMBAvailable(const char *path);
85
78 #include <cmath> 86 #include <cmath>
79 87
80 extern double mod(double x, double y); 88 extern double mod(double x, double y);
81 extern float modf(float x, float y); 89 extern float modf(float x, float y);
82 90