Pyrogenesis
trunk
|
Functions | |
intptr_t | cpu_AtomicAdd (volatile intptr_t *location, intptr_t increment) |
add a signed value to a variable without the possibility of interference from other threads/CPUs. More... | |
bool | cpu_CAS (volatile intptr_t *location, intptr_t expected, intptr_t newValue) |
atomic "compare and swap". More... | |
bool | cpu_CAS64 (volatile i64 *location, i64 expected, i64 newValue) |
const char * | cpu_IdentifierString () |
intptr_t cpu_AtomicAdd | ( | volatile intptr_t * | location, |
intptr_t | increment | ||
) |
add a signed value to a variable without the possibility of interference from other threads/CPUs.
bool cpu_CAS | ( | volatile intptr_t * | location, |
intptr_t | expected, | ||
intptr_t | newValue | ||
) |
atomic "compare and swap".
location | address of the word to compare and possibly overwrite |
expected | its expected value |
newValue | the value with which to replace it |
const char* cpu_IdentifierString | ( | ) |