MT Showcase SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Showcase::ChannelInfo< T > Struct Template Reference

Only meant to be used in the internal implementation of ValueStreamSplitter. More...

#include <ValueStreamChannels.hpp>

Inherits set_base_hook<>.

Public Attributes

std::mutex channelMutex
 Variables used in synchronisation when cloning streams: More...
 

Detailed Description

template<typename T>
struct Showcase::ChannelInfo< T >

Only meant to be used in the internal implementation of ValueStreamSplitter.

Member Data Documentation

template<typename T>
std::mutex Showcase::ChannelInfo< T >::channelMutex

Variables used in synchronisation when cloning streams:

Mutex is used with wait condition. It is also used to protect count of the futures which satisfies following conditions:

  • Reader of the channel has handle to the future
  • Promise of the future has been fulfilled
  • Callback attached to the future has not been executed (related CallbackGuard has not been destroyed)