Remove cache implementation, to be discussed and done later

This commit is contained in:
Bruno Martins
2019-06-13 10:47:00 -04:00
committed by mdavidsaver
parent 6a163d7fd4
commit 9702b68d72
18 changed files with 69 additions and 197 deletions

View File

@@ -148,20 +148,14 @@ bool NTURI::is_a(PVStructurePtr const & pvStructure)
return is_a(pvStructure->getStructure());
}
static epicsThreadOnceId cachedResultOnceId = EPICS_THREAD_ONCE_INIT;
static epicsThreadPrivateId cachedResultId;
bool NTURI::isCompatible(StructureConstPtr const & structure)
{
if (!structure)
return false;
Result& result = Result::fromCache(&cachedResultOnceId, &cachedResultId);
Result result(structure);
if (result.wraps(structure))
return result.valid();
result.reset(structure)
result
.is<Structure>()
.has<Scalar>("scheme")
.has<Scalar>("path")