libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::CancelableFuture< T >::State Struct Reference

#include <CancelableFuture.h>

Public Member Functions

void Cancel ()

Public Attributes

std::vector< DoneCallback > callbacks
std::vector< CancelCallback > cancelCallbacks
bool canceled =false
std::mutex mutex
std::optional< T > value

Member Function Documentation

◆ Cancel()

template<typename T>
void osmscout::CancelableFuture< T >::State::Cancel ( )
inline

References cancelCallbacks, canceled, mutex, and value.

Member Data Documentation

◆ callbacks

template<typename T>
std::vector<DoneCallback> osmscout::CancelableFuture< T >::State::callbacks

◆ cancelCallbacks

template<typename T>
std::vector<CancelCallback> osmscout::CancelableFuture< T >::State::cancelCallbacks

Referenced by Cancel().

◆ canceled

template<typename T>
bool osmscout::CancelableFuture< T >::State::canceled =false

Referenced by Cancel().

◆ mutex

template<typename T>
std::mutex osmscout::CancelableFuture< T >::State::mutex

Referenced by Cancel().

◆ value

template<typename T>
std::optional<T> osmscout::CancelableFuture< T >::State::value

Referenced by Cancel().


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