Go to the source code of this file.
static ICounter* ConstructCounterAt |
( |
size_t |
id, |
|
|
void * |
address, |
|
|
size_t |
size |
|
) |
| |
|
static |
- Parameters
-
id | |
address | |
size | Maximum allowable size [bytes] of the subclass instance |
- Returns
- pointer to a newly constructed ICounter subclass of type <id> at the given address, or 0 iff the ID is invalid.
Definition at line 52 of file counter.cpp.
- Returns
- a newly created ICounter of type <id> or 0 iff the ID is invalid.
- Parameters
-
there can only be one active counter at a time; the previous one must have been destroyed before creating another!
Definition at line 82 of file counter.cpp.
void DestroyCounter |
( |
ICounter *& |
counter | ) |
|
shut down the counter, free its resources and zero its pointer.
Definition at line 109 of file counter.cpp.
volatile intptr_t isCounterAllocated |
|
static |