* @brief Implementation of @c getTotalSystemMemory() on Windows. */
| 49 | * @brief Implementation of @c getTotalSystemMemory() on Windows. |
| 50 | */ |
| 51 | std::size_t getTotalSystemMemoryOnWindows() { |
| 52 | MEMORYSTATUSEX memoryStatus; |
| 53 | memoryStatus.dwLength = sizeof(memoryStatus); |
| 54 | bool succeeded = GlobalMemoryStatusEx(&memoryStatus); |
| 55 | return succeeded ? memoryStatus.ullTotalPhys : 0; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * @brief Assigns the current process into a new job and returns a handle to |
no outgoing calls
no test coverage detected