cache_managers/dumb_cache_manager/src/dumb_cache_manager.cpp
void
dumb_cache_manager::update_stream(const etix::cameradar::stream_model& newmodel) {
    std::lock_guard<std::mutex> lock(m);
    for (auto& stream : this->streams) {
        if (stream.address == newmodel.address && stream.port == newmodel.port) {
            stream = newmodel;
        }
    }
}
//! Inserts a single stream to the cache
Inserts a single stream to the cache
Inserts a single stream to the cache
void
dumb_cache_manager::update_stream(const etix::cameradar::stream_model& newmodel) {
    std::lock_guard<std::mutex> lock(m);
    for (auto& stream : this->streams) {
        if (stream.address == newmodel.address && stream.port == newmodel.port) {
            stream = newmodel;
        }
    }
}
void dumb_cache_manager :: update_stream ( const etix :: cameradar :: stream_model & newmodel ) { std :: lock_guard < std :: mutex > lock ( m ) ; for ( auto & stream : this -> streams ) { if ( stream . address == newmodel . address && stream . port == newmodel . port ) { stream = newmodel ; } } }
Inserts a single stream to the cache
Inserts a single stream to the cache