Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
os_cpu.cpp File Reference
#include "precompiled.h"
#include "lib/sysdep/os_cpu.h"
#include "lib/alignment.h"
#include "lib/sysdep/smbios.h"
Include dependency graph for os_cpu.cpp:

Functions

 STATUS_ADD_DEFINITIONS (osCpuStatusDefinitions)
 
double os_cpu_ClockFrequency ()
 
size_t os_cpu_MemorySize ()
 

Variables

static const StatusDefinition osCpuStatusDefinitions []
 

Function Documentation

◆ os_cpu_ClockFrequency()

double os_cpu_ClockFrequency ( )
Returns
a rough estimate of the CPU clock frequency. this is usually accurate to a few MHz and is faster than measurement loops.

◆ os_cpu_MemorySize()

size_t os_cpu_MemorySize ( )
Returns
the size [MB] of physical memory; caches the result of os_cpu_QueryMemorySize and overrides it with a more exact value if SMBIOS information is available.

◆ STATUS_ADD_DEFINITIONS()

STATUS_ADD_DEFINITIONS ( osCpuStatusDefinitions  )

Variable Documentation

◆ osCpuStatusDefinitions

const StatusDefinition osCpuStatusDefinitions[]
static
Initial value:
= {
{ ERR::OS_CPU_RESTRICTED_AFFINITY, L"Cannot set desired CPU affinity" }
}
const Status OS_CPU_RESTRICTED_AFFINITY
Definition: os_cpu.h:32