comparison system/System.h @ 1038:cc27f35aa75c cxx11

Introducing the signed 64-bit frame index type, and fixing build failures from inclusion of -Wconversion with -Werror. Not finished yet.
author Chris Cannam
date Tue, 03 Mar 2015 15:18:24 +0000
parents 1d439494604c
children 7598a78cf915
comparison
equal deleted inserted replaced
1037:bf0e5944289b 1038:cc27f35aa75c
141 141
142 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus }; 142 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus };
143 extern ProcessStatus GetProcessStatus(int pid); 143 extern ProcessStatus GetProcessStatus(int pid);
144 144
145 // Return a vague approximation to the number of free megabytes of real memory. 145 // Return a vague approximation to the number of free megabytes of real memory.
146 // Return -1 if unknown. 146 // Return -1 if unknown. (Hence signed args)
147 extern void GetRealMemoryMBAvailable(int &available, int &total); 147 extern void GetRealMemoryMBAvailable(ssize_t &available, ssize_t &total);
148 148
149 // Return a vague approximation to the number of free megabytes of disc space 149 // Return a vague approximation to the number of free megabytes of
150 // on the partition containing the given path. Return -1 if unknown. 150 // disc space on the partition containing the given path. Return -1
151 extern int GetDiscSpaceMBAvailable(const char *path); 151 // if unknown. (Hence signed return type)
152 extern ssize_t GetDiscSpaceMBAvailable(const char *path);
152 153
153 extern void StoreStartupLocale(); 154 extern void StoreStartupLocale();
154 extern void RestoreStartupLocale(); 155 extern void RestoreStartupLocale();
155 156
156 #include <cmath> 157 #include <cmath>