Changes between Version 1 and Version 2 of MapGuideRfc151


Ignore:
Timestamp:
09/20/15 21:39:10 (9 years ago)
Author:
zhanga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc151

    v1 v2  
    261261}}}
    262262
     263If the resource is changed, remove the entry from the cache.
     264{{{
     265void MgCacheManager::NotifyResourceChanged(CREFSTRING resource)
     266{
     267    ......
     268    if (STRING::npos != resource.rfind(MgResourceType::LayerDefinition))
     269    {
     270        ACE_MT(ACE_GUARD(ACE_Recursive_Thread_Mutex, ace_mon, m_resourceServiceCache.m_mutex));
     271        m_resourceServiceCache.RemoveEntry(resource);
     272    }
     273}
     274
     275}}}
     276
     277
    263278Now, we get the MdfModel::LayerDefinition of a layer from the cache manager:
    264279{{{