MT Showcase SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Showcase::SynchronousGenerator< GeneratorType > Class Template Referenceabstract

This implementation enables writing simple synchronous code when generating values without not stalling the main thread. More...

#include <BackendComponents.hpp>

Inherits GeneratorType.

Protected Member Functions

virtual ValueType generateNextItem ()=0
 This function is executed from the futures. More...
 

Detailed Description

template<typename GeneratorType>
class Showcase::SynchronousGenerator< GeneratorType >

This implementation enables writing simple synchronous code when generating values without not stalling the main thread.

Member Function Documentation

template<typename GeneratorType>
virtual ValueType Showcase::SynchronousGenerator< GeneratorType >::generateNextItem ( )
protectedpure virtual

This function is executed from the futures.

It is guaranteed that the internal lock of the generator is locked while this is called.