Remove cache implementation, to be discussed and done later
This commit is contained in:
committed by
mdavidsaver
parent
6a163d7fd4
commit
9702b68d72
@@ -232,20 +232,14 @@ bool NTMultiChannel::is_a(PVStructurePtr const & pvStructure)
|
||||
return is_a(pvStructure->getStructure());
|
||||
}
|
||||
|
||||
static epicsThreadOnceId cachedResultOnceId = EPICS_THREAD_ONCE_INIT;
|
||||
static epicsThreadPrivateId cachedResultId;
|
||||
|
||||
bool NTMultiChannel::isCompatible(StructureConstPtr const & structure)
|
||||
{
|
||||
if (!structure)
|
||||
return false;
|
||||
|
||||
Result& result = Result::fromCache(&cachedResultOnceId, &cachedResultId);
|
||||
Result result(structure);
|
||||
|
||||
if (result.wraps(structure))
|
||||
return result.valid();
|
||||
|
||||
return result.reset(structure)
|
||||
return result
|
||||
.is<Structure>()
|
||||
.has<UnionArray>("value")
|
||||
.has<ScalarArray>("channelName")
|
||||
|
||||
Reference in New Issue
Block a user