StuBS
|
Handy interface for core local variables Example usage: More...
#include <object/percore.h>
Classes | |
struct | cache_aligned |
Public Member Functions | |
PerCore () | |
PerCore (const T &val) | |
T & | get () |
const T & | get () const |
const T & | set (const T &value) |
T * | operator-> () |
const T * | operator-> () const |
T & | operator* () |
const T & | operator* () const |
T * | operator& () |
T & | operator* () volatile |
T & | operator= (T &val) |
T | operator++ (int) |
T & | operator++ () |
T | operator-- (int) |
T & | operator-- () |
bool | operator== (const T &val) const |
bool | operator!= (const T &val) const |
T & | operator[] (unsigned index) |
Access the variable of another CPU. | |
T & | operator[] (unsigned index) volatile |
const T & | operator[] (unsigned index) const |
Static Public Member Functions | |
static int | getSize (void) |
Static Private Member Functions | |
static int | cpuid () |
Private Attributes | |
struct PerCore::cache_aligned | instances [SIZE] |
Static Private Attributes | |
static const int | SIZE = Core::MAX |
Handy interface for core local variables Example usage:
struct PerCore::cache_aligned |
Access the variable of another CPU.