tlds
Transactional Operations for Linked Data Structures
|
Classes | |
struct | block |
struct | pool |
struct | memory |
Macros | |
#define | PADDING_SIZE 8 |
Typedefs | |
typedef struct block | block_t |
typedef struct pool | pool_t |
Functions | |
static block_t * | allocBlock (size_t capacity) |
static void | freeBlock (block_t *blockPtr) |
static pool_t * | allocPool (size_t initBlockCapacity, long blockGrowthFactor) |
static void | freeBlocks (block_t *blockPtr) |
static void | freePool (pool_t *poolPtr) |
bool_t | memory_init (long numThread, size_t initBlockCapacity, long blockGrowthFactor) |
void | memory_destroy (void) |
static block_t * | addBlockToPool (pool_t *poolPtr, long numByte) |
static void * | getMemoryFromBlock (block_t *blockPtr, size_t numByte) |
static void * | getMemoryFromPool (pool_t *poolPtr, size_t numByte) |
void * | memory_get (long threadId, size_t numByte) |
Variables | |
memory_t * | global_memoryPtr = 0 |
#define PADDING_SIZE 8 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void memory_destroy | ( | void | ) |
void* memory_get | ( | long | threadId, |
size_t | numByte | ||
) |
bool_t memory_init | ( | long | numThread, |
size_t | initBlockCapacity, | ||
long | blockGrowthFactor | ||
) |
memory_t* global_memoryPtr = 0 |