DUNE: Uniform Navigational Environment
2019.02.0
|
Public Member Functions | |
Resources (void) | |
int | getProcessorUsage (void) |
Static Public Member Functions | |
static void | lockMemory (void) |
static void | unlockMemory (void) |
static void | lockMemory (void *addr, size_t length) |
static void | unlockMemory (const void *addr, size_t length) |
DUNE::System::Resources::Resources | ( | void | ) |
Initialize resource monitor.
References getProcessorUsage().
int DUNE::System::Resources::getProcessorUsage | ( | void | ) |
Retrieve the percentage of CPU time used by the calling process since the last call to this function or object creation.
On multi CPU systems the CPU time is an average.
Referenced by Resources().
|
static |
Make all memory pages mapped by the address space of the current process to be memory-resident until unlocked or until the process exits.
|
static |
Make those whole pages containing any part of the address space of the process starting at address 'addr' and continuing for 'length' bytes to be memory-resident until unlocked or until the process exits or execs another process image.
[in] | addr | starting memory address. |
[in] | length | length of memory. |
|
static |
Unlock memory pages.
|
static |
Unlock memory pages.
[in] | addr | starting memory address. |
[in] | length | length of memory. |