MCPcopy Create free account
hub / github.com/ImageEngine/cortex / setMaxMemoryUsage

Method setMaxMemoryUsage

src/IECore/ObjectPool.cpp:125–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void ObjectPool::setMaxMemoryUsage( size_t maxMemory )
126{
127 m_data->cache.setMaxCost(maxMemory);
128}
129
130size_t ObjectPool::getMaxMemoryUsage() const
131{

Callers 3

testMaxMemoryUsageMethod · 0.95
testMethod · 0.95
testMethod · 0.80

Calls

no outgoing calls

Tested by 2

testMaxMemoryUsageMethod · 0.76
testMethod · 0.64