Merged Michael's valgrind branch

This commit is contained in:
Andrew Johnson
2016-02-08 18:01:59 -06:00
11 changed files with 6734 additions and 13 deletions

View File

@@ -18,6 +18,7 @@
#include <db_field_log.h>
#include <dbLock.h>
#include <recSup.h>
#include <epicsExit.h>
#include <special.h>
#include <chfPlugin.h>
#include <epicsExport.h>
@@ -200,6 +201,11 @@ static chfPluginIf pif = {
NULL /* channel_close */
};
static void arrShutdown(void* ignore)
{
freeListCleanup(myStructFreeList);
}
static void arrInitialize(void)
{
static int firstTime = 1;
@@ -211,6 +217,7 @@ static void arrInitialize(void)
freeListInitPvt(&myStructFreeList, sizeof(myStruct), 64);
chfPluginRegister("arr", &pif, opts);
epicsAtExit(arrShutdown, NULL);
}
epicsExportRegistrar(arrInitialize);

View File

@@ -18,6 +18,7 @@
#include <dbConvertFast.h>
#include <chfPlugin.h>
#include <recGbl.h>
#include <epicsExit.h>
#include <db_field_log.h>
#include <epicsExport.h>
@@ -121,6 +122,11 @@ static chfPluginIf pif = {
NULL /* channel_close */
};
static void dbndShutdown(void* ignore)
{
freeListCleanup(myStructFreeList);
}
static void dbndInitialize(void)
{
static int firstTime = 1;
@@ -132,6 +138,7 @@ static void dbndInitialize(void)
freeListInitPvt(&myStructFreeList, sizeof(myStruct), 64);
chfPluginRegister("dbnd", &pif, opts);
epicsAtExit(dbndShutdown, NULL);
}
epicsExportRegistrar(dbndInitialize);

View File

@@ -16,6 +16,7 @@
#include "db_field_log.h"
#include "chfPlugin.h"
#include "dbState.h"
#include "epicsExit.h"
#include "epicsAssert.h"
#include "epicsExport.h"
@@ -174,6 +175,11 @@ static chfPluginIf pif = {
NULL /* channel_close */
};
static void syncShutdown(void* ignore)
{
freeListCleanup(myStructFreeList);
}
static void syncInitialize(void)
{
static int firstTime = 1;
@@ -185,6 +191,7 @@ static void syncInitialize(void)
freeListInitPvt(&myStructFreeList, sizeof(myStruct), 64);
chfPluginRegister("sync", &pif, opts);
epicsAtExit(syncShutdown, NULL);
}
epicsExportRegistrar(syncInitialize);