21#ifndef INCLUDE_OLA_THREAD_FUTURE_H_
22#define INCLUDE_OLA_THREAD_FUTURE_H_
24#include <ola/thread/FuturePrivate.h>
35 Future() : m_impl(
new FutureImpl<T>()) {}
41 Future(
const Future &other) : m_impl(other.m_impl) {
45 Future& operator=(
const Future<T> &other) {
49 m_impl = other.m_impl;
54 bool IsComplete()
const {
55 return m_impl->IsComplete();
62 void Set(
const T &t) {
67 class FutureImpl<T> *m_impl;
82 Future(
const Future &other) : m_impl(other.m_impl) {
86 Future& operator=(
const Future<void> &other) {
90 m_impl = other.m_impl;
95 bool IsComplete()
const {
96 return m_impl->IsComplete();
Definition FuturePrivate.h:32
Threads and synchronization mechanisms.
Definition ConsumerThread.cpp:25
The namespace containing all OLA symbols.
Definition Credentials.cpp:44