Pyrogenesis
trunk
|
#include "precompiled.h"
#include "lib/sysdep/os/win/whrt/counter.h"
#include "lib/alignment.h"
#include "lib/sysdep/cpu.h"
#include "lib/sysdep/os/win/whrt/tsc.h"
#include "lib/sysdep/os/win/whrt/hpet.h"
#include "lib/sysdep/os/win/whrt/pmt.h"
#include "lib/sysdep/os/win/whrt/qpc.h"
#include "lib/sysdep/os/win/whrt/tgt.h"
Functions | |
static ICounter * | ConstructCounterAt (size_t id, void *address, size_t size) |
ICounter * | CreateCounter (size_t id) |
void | DestroyCounter (ICounter *&counter) |
shut down the counter, free its resources and zero its pointer. More... | |
Variables | |
static volatile intptr_t | isCounterAllocated |
|
static |
id | |
address | |
size | Maximum allowable size [bytes] of the subclass instance |
ICounter* CreateCounter | ( | size_t | id | ) |
id | integer ID (0..N-1) |
there can only be one active counter at a time; the previous one must have been destroyed before creating another!
void DestroyCounter | ( | ICounter *& | counter | ) |
shut down the counter, free its resources and zero its pointer.
|
static |