Dispatch Queue
Dispatch Queue / Thread Pool implementation for C++11 with built-in C++20 coroutine support
 
Loading...
Searching...
No Matches
dispatch_queue::detail::task_future< void > Class Reference
Inheritance diagram for dispatch_queue::detail::task_future< void >:
dispatch_queue::detail::task_future_base dispatch_queue::detail::task_future_base

Public Types

using value_type = void
 
using value_type
 

Public Member Functions

template<typename... Args>
 task_future (private_construct, Args &&... args)
 
template<typename F>
auto then (F &&f)
 
void get ()
 
template<typename F, typename... Args>
void do_work (F &&work, Args &&... args)
 
template<typename F>
auto wrap (F &&work)
 
void set_value ()
 
 task_future (private_construct, Args &&... args)
 
 task_future (private_construct, void &&value)
 
auto then (F &&f)
 
void get ()
 
void do_work (F &&work, Args &&... args)
 
auto wrap (F &&work)
 
void set_value (void &&value)
 
- Public Member Functions inherited from dispatch_queue::detail::task_future_base
task_state get_state ()
 
std::exception_ptr get_exception ()
 
void set_exception (std::exception_ptr exception)
 
void wait ()
 
template<class Rep, class Period>
bool wait_for (const std::chrono::duration< Rep, Period > &timeout_duration)
 
template<class Clock, class Duration>
bool wait_until (const std::chrono::time_point< Clock, Duration > &timeout_time)
 

Static Public Member Functions

static std::shared_ptr< task_futurecreate_pending ()
 
static std::shared_ptr< task_futurecreate_ready ()
 
static std::shared_ptr< task_futurecreate_failed (std::exception_ptr exception)
 
template<typename F>
static std::shared_ptr< task_futurecreate (F &&work)
 
static std::shared_ptr< task_futurecreate_pending ()
 
static std::shared_ptr< task_futurecreate_ready (void &&value)
 
static std::shared_ptr< task_futurecreate_failed (std::exception_ptr exception)
 
static std::shared_ptr< task_futurecreate (F &&work)
 

Public Attributes

struct { 
 
empty 
 
void value
 

Additional Inherited Members

- Protected Member Functions inherited from dispatch_queue::detail::task_future_base
 task_future_base (private_construct, task_state state)
 
 task_future_base (private_construct, std::exception_ptr exception)
 
 task_future_base (const task_future_base &)=delete
 
task_future_baseoperator= (const task_future_base &)=delete
 
- Protected Attributes inherited from dispatch_queue::detail::task_future_base
std::mutex mutex
 
std::condition_variable condition_variable
 
std::exception_ptr exception
 
task_state state
 

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