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

Method removeStoredImage

src/IECoreImage/ImageDisplayDriver.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167ConstImagePrimitivePtr ImageDisplayDriver::removeStoredImage( const std::string &handle )
168{
169 ConstImagePrimitivePtr result = nullptr;
170 std::lock_guard<std::mutex> lock( g_poolMutex );
171 ImagePool::iterator it = g_pool.find( handle );
172 if( it != g_pool.end() )
173 {
174 result = it->second;
175 g_pool.erase( it );
176 }
177 return result;
178}

Callers 4

testMergeMapMethod · 0.80
testImagePoolMethod · 0.80
testTransferMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by 4

testMergeMapMethod · 0.64
testImagePoolMethod · 0.64
testTransferMethod · 0.64