add numericRecord, removeRecordRegister, traceRecordRegister

This commit is contained in:
mrkraimer
2019-06-01 06:59:23 -04:00
parent ecdf70d858
commit 247839b94d
11 changed files with 466 additions and 16 deletions

View File

@@ -10,11 +10,12 @@
*/
#include <epicsGuard.h>
#include <epicsThread.h>
#include <pv/convert.h>
#include <pv/pvStructureCopy.h>
#include <pv/pvData.h>
#define epicsExportSharedSymbols
#include <pv/pvDatabase.h>
#include <pv/pvStructureCopy.h>
using std::tr1::static_pointer_cast;
using namespace epics::pvData;
@@ -101,20 +102,6 @@ PVRecord::~PVRecord()
void PVRecord::remove()
{
#ifdef XXX
{
epicsGuard<epics::pvData::Mutex> guard(mutex);
if(traceLevel>0) {
cout << "PVRecord::remove() " << recordName
<< " isDestroyed " << (isDestroyed ? "true" : "false")
<< endl;
}
if(isDestroyed) {
return;
}
isDestroyed = true;
}
#endif
PVDatabasePtr pvDatabase(PVDatabase::getMaster());
if(pvDatabase) pvDatabase->removeRecord(shared_from_this());
pvTimeStamp.detach();