added destroyAllPV call

This commit is contained in:
Jeff Hill
2004-09-22 18:45:11 +00:00
parent 6e01a1e22c
commit ff419d8922
2 changed files with 11 additions and 11 deletions

View File

@@ -111,20 +111,18 @@ exServer::exServer ( const char * const pvPrefix,
//
exServer::~exServer()
{
pvInfo *pPVI;
pvInfo *pPVAfter =
&exServer::pvList[NELEMENTS(exServer::pvList)];
//
// delete all pre-created PVs (eliminate bounds-checker warnings)
//
for (pPVI = exServer::pvList; pPVI < pPVAfter; pPVI++) {
pPVI->deletePV ();
}
this->destroyAllPV ();
this->stringResTbl.traverse ( &pvEntry::destroy );
}
void exServer::destroyAllPV ()
{
for ( unsigned i = 0;
i < NELEMENTS(exServer::pvList); i++ ) {
exServer::pvList[i].deletePV ();
}
}
//
// exServer::installAliasName()
//

View File

@@ -286,6 +286,8 @@ public:
class epicsTimer & createTimer ();
void setDebugLevel ( unsigned level );
void destroyAllPV ();
private:
resTable < pvEntry, stringId > stringResTbl;
epicsTimerQueueActive * pTimerQueue;