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

Needed for implementing CloneableValueStream so that the following conditions are satisfied: More...

#include <ValueStreamChannels.hpp>

Detailed Description

template<typename T>
class Showcase::ChannelGuard< T >

Needed for implementing CloneableValueStream so that the following conditions are satisfied:

  • All futures that are ready after clone is called are accessable from the cloned channel
  • Allows execution of code after the last future not shared with new channel has returned and before any of the futures shared with new channel has returned

This is needed for ensuring that when caching the values, no value is leaked between cloned streams or duplicated to cache and new stream