std/filter: plugins cleanup freeList

This commit is contained in:
Michael Davidsaver
2015-12-21 13:44:23 -05:00
committed by Michael Davidsaver
parent c1f742e741
commit d94840ae6c
3 changed files with 21 additions and 0 deletions
+7
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);
+7
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);
+7
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);