MCPcopy Create free account
hub / github.com/OpenMW/openmw / addEntryToObjectCache

Method addEntryToObjectCache

components/resource/multiobjectcache.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 void MultiObjectCache::addEntryToObjectCache(VFS::Path::NormalizedView filename, osg::Object* object)
43 {
44 if (!object)
45 {
46 OSG_ALWAYS << " trying to add NULL object to cache for " << filename << std::endl;
47 return;
48 }
49 std::lock_guard<std::mutex> lock(_objectCacheMutex);
50 _objectCache.emplace(filename, object);
51 }
52
53 osg::ref_ptr<osg::Object> MultiObjectCache::takeFromObjectCache(VFS::Path::NormalizedView fileName)
54 {

Callers 14

getTextureMethod · 0.45
getChunkMethod · 0.45
getImageMethod · 0.45
getShapeMethod · 0.45
cacheInstanceMethod · 0.45
getTemplateMethod · 0.45
loadRulesMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
TESTMethod · 0.45
getChunkMethod · 0.45

Calls 1

emplaceMethod · 0.80

Tested by 1

TESTMethod · 0.36