| 165 | } |
| 166 | |
| 167 | ConstImagePrimitivePtr 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 | } |