Evo C++ Library v0.5.1
Public Types | Public Member Functions | Public Attributes | List of all members
StreamExtMT< T, M > Struct Template Reference

#include <evo/io.h>

Detailed Description

template<class T, class M>
struct evo::StreamExtMT< T, M >

Extends an existing stream with mutex for multithreaded synchronization.

Public Types

typedef StreamExtMT< T, M > This
 This type. More...
 

Public Member Functions

 StreamExtMT (T &stream)
 Constructor. More...
 

Public Attributes

mutex
 Stream mutex. More...
 
T & stream
 Stream object. More...
 

Member Typedef Documentation

◆ This

typedef StreamExtMT<T,M> This

This type.

Constructor & Destructor Documentation

◆ StreamExtMT()

StreamExtMT ( T &  stream)
inline

Constructor.

Parameters
streamStream to extend/wrap

Member Data Documentation

◆ mutex

M mutex

Stream mutex.

◆ stream

T& stream

Stream object.


The documentation for this struct was generated from the following file: