Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
future_job.h File Reference

Job wrapper that provides std::future for async result returns. More...

#include <kcenon/thread/core/job.h>
#include <kcenon/thread/core/error_handling.h>
#include <functional>
#include <future>
#include <memory>
#include <type_traits>
Include dependency graph for future_job.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::thread::future_job< R >
 A job that wraps a callable and provides a future for its result. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::thread
 Core threading foundation of the thread system library.
 

Detailed Description

Job wrapper that provides std::future for async result returns.

This file provides the future_job template class that wraps callables with std::promise to enable async result retrieval through std::future.

Definition in file future_job.h.