class ugcs::vsm::File_processor::Stream::Native_handle::Stream_ref_holder

Overview

Helper class to hold reference to a stream and optionally release a lock before releasing the reference to a stream. More…

#include <file_processor.h>

class Stream_ref_holder
{
public:
    // construction

    Stream_ref_holder(Stream::Ptr stream, std::unique_lock<std::mutex>&& lock);
    Stream_ref_holder(Stream_ref_holder&&);
};

Detailed Documentation

Helper class to hold reference to a stream and optionally release a lock before releasing the reference to a stream.

Construction

Stream_ref_holder(Stream::Ptr stream, std::unique_lock<std::mutex>&& lock)

Constructor.

Stream_ref_holder(Stream_ref_holder&&)

Default move constructor.