#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include "valgrind/valgrind.h"
#include "cantProceed.h"
#include "epicsMutex.h"
#include "freeList.h"
#include "adjustment.h"
Go to the source code of this file.
#define REDZONE sizeof(double) |
LIBCOM_API void* epicsStdCall freeListCalloc |
( |
void * |
pvt | ) |
|
Definition at line 60 of file freeListLib.c.
63 # ifdef EPICS_FREELIST_DEBUG 69 if(ptemp) memset((
char *)ptemp,0,pfl->
size);
LIBCOM_API void *epicsStdCall freeListMalloc(void *pvt)
LIBCOM_API void * callocMustSucceed(size_t count, size_t size, const char *msg)
A calloc() that never returns NULL.
LIBCOM_API void epicsStdCall freeListCleanup |
( |
void * |
pvt | ) |
|
Definition at line 152 of file freeListLib.c.
void epicsStdCall epicsMutexDestroy(epicsMutexId pmutexNode)
Destroy an epicsMutex semaphore.
#define VALGRIND_DESTROY_MEMPOOL(pool)
LIBCOM_API void epicsStdCall freeListFree |
( |
void * |
pvt, |
|
|
void * |
pmem |
|
) |
| |
Definition at line 131 of file freeListLib.c.
134 # ifdef EPICS_FREELIST_DEBUG 135 memset ( pmem, 0xdd, pfl->
size );
void epicsStdCall epicsMutexUnlock(epicsMutexId pmutexNode)
Release the semaphore.
#define VALGRIND_MEMPOOL_ALLOC(pool, addr, size)
#define VALGRIND_MEMPOOL_FREE(pool, addr)
#define epicsMutexMustLock(ID)
Claim a semaphore (see epicsMutexLock()).
LIBCOM_API void epicsStdCall freeListInitPvt |
( |
void ** |
ppvt, |
|
|
int |
size, |
|
|
int |
nmalloc |
|
) |
| |
Definition at line 44 of file freeListLib.c.
LIBCOM_API size_t adjustToWorstCaseAlignment(size_t size)
#define epicsMutexMustCreate()
Create an epicsMutex semaphore for use from C code.
#define VALGRIND_CREATE_MEMPOOL(pool, rzB, is_zeroed)
LIBCOM_API void * callocMustSucceed(size_t count, size_t size, const char *msg)
A calloc() that never returns NULL.
LIBCOM_API size_t epicsStdCall freeListItemsAvail |
( |
void * |
pvt | ) |
|
Definition at line 171 of file freeListLib.c.
174 size_t nBlocksAvailable;
178 return nBlocksAvailable;
void epicsStdCall epicsMutexUnlock(epicsMutexId pmutexNode)
Release the semaphore.
#define epicsMutexMustLock(ID)
Claim a semaphore (see epicsMutexLock()).
LIBCOM_API void* epicsStdCall freeListMalloc |
( |
void * |
pvt | ) |
|
Definition at line 74 of file freeListLib.c.
77 # ifdef EPICS_FREELIST_DEBUG 106 pallocmem->
memory = ptemp;
107 ptemp =
REDZONE + (
char *) ptemp;
111 for(i=0; i<pfl->
nmalloc; i++) {
void epicsStdCall epicsMutexUnlock(epicsMutexId pmutexNode)
Release the semaphore.
#define VALGRIND_MEMPOOL_ALLOC(pool, addr, size)
LIBCOM_API void * callocMustSucceed(size_t count, size_t size, const char *msg)
A calloc() that never returns NULL.
#define VALGRIND_MEMPOOL_FREE(pool, addr)
#define epicsMutexMustLock(ID)
Claim a semaphore (see epicsMutexLock()).