Mercurial > hg > svcore
comparison system/System.h @ 1405:91231350ee22
Change where the 32-bit memory calculation adjustment is carried out -- more transparent here
author | Chris Cannam |
---|---|
date | Tue, 07 Mar 2017 13:27:53 +0000 |
parents | f350af2b542d |
children | bd1a2cacd1e7 |
comparison
equal
deleted
inserted
replaced
1404:d40246df828b | 1405:91231350ee22 |
---|---|
152 | 152 |
153 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus }; | 153 enum ProcessStatus { ProcessRunning, ProcessNotRunning, UnknownProcessStatus }; |
154 extern ProcessStatus GetProcessStatus(int pid); | 154 extern ProcessStatus GetProcessStatus(int pid); |
155 | 155 |
156 // Return a vague approximation to the number of free megabytes of real memory. | 156 // Return a vague approximation to the number of free megabytes of real memory. |
157 // Return -1 if unknown. (Hence signed args) | 157 // Return -1 if unknown. (Hence signed args.) Note that this could be more than |
158 // is actually addressable, e.g. for a 32-bit process on a 64-bit system. | |
158 extern void GetRealMemoryMBAvailable(ssize_t &available, ssize_t &total); | 159 extern void GetRealMemoryMBAvailable(ssize_t &available, ssize_t &total); |
159 | 160 |
160 // Return a vague approximation to the number of free megabytes of | 161 // Return a vague approximation to the number of free megabytes of |
161 // disc space on the partition containing the given path. Return -1 | 162 // disc space on the partition containing the given path. Return -1 |
162 // if unknown. (Hence signed return type) | 163 // if unknown. (Hence signed return type) |