|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Specialization for void return type. More...
#include <cancellable_future.h>

Public Types | |
| using | value_type = void |
Public Member Functions | |
| cancellable_future (std::future< void > future, cancellation_token token) | |
| ~cancellable_future ()=default | |
| cancellable_future (const cancellable_future &)=delete | |
| cancellable_future & | operator= (const cancellable_future &)=delete |
| cancellable_future (cancellable_future &&) noexcept=default | |
| cancellable_future & | operator= (cancellable_future &&) noexcept=default |
| auto | get () -> common::VoidResult |
| auto | get_for (std::chrono::milliseconds timeout) -> common::Result< bool > |
| auto | is_ready () const -> bool |
| auto | is_cancelled () const -> bool |
| void | cancel () |
| auto | valid () const -> bool |
| void | wait () const |
| template<typename Rep , typename Period > | |
| auto | wait_for (const std::chrono::duration< Rep, Period > &timeout) const -> std::future_status |
| auto | get_token () const -> cancellation_token |
Private Attributes | |
| std::future< void > | future_ |
| cancellation_token | token_ |
Specialization for void return type.
Definition at line 215 of file cancellable_future.h.
| using kcenon::thread::cancellable_future< void >::value_type = void |
Definition at line 217 of file cancellable_future.h.
|
inline |
Definition at line 219 of file cancellable_future.h.
|
default |
|
delete |
|
defaultnoexcept |
|
inline |
Definition at line 273 of file cancellable_future.h.
References kcenon::thread::cancellation_token::cancel(), and kcenon::thread::cancellable_future< R >::token_.

|
inlinenodiscard |
Definition at line 231 of file cancellable_future.h.
References kcenon::thread::cancellation_token::is_cancelled(), kcenon::thread::job_execution_failed, kcenon::thread::make_error_result(), kcenon::thread::cancellable_future< R >::token_, and kcenon::thread::unknown_error.

|
inlinenodiscard |
Definition at line 245 of file cancellable_future.h.
References kcenon::thread::cancellable_future< R >::future_, kcenon::thread::cancellation_token::is_cancelled(), kcenon::thread::job_execution_failed, kcenon::thread::make_error_result(), kcenon::thread::operation_canceled, kcenon::thread::cancellable_future< R >::token_, and kcenon::thread::unknown_error.

|
inlinenodiscard |
Definition at line 292 of file cancellable_future.h.
References kcenon::thread::cancellable_future< R >::token_.
|
inlinenodiscard |
Definition at line 269 of file cancellable_future.h.
References kcenon::thread::cancellation_token::is_cancelled(), and kcenon::thread::cancellable_future< R >::token_.

|
inlinenodiscard |
Definition at line 264 of file cancellable_future.h.
References kcenon::thread::cancellable_future< R >::future_.
|
defaultnoexcept |
|
delete |
|
inlinenodiscard |
Definition at line 277 of file cancellable_future.h.
References kcenon::thread::cancellable_future< R >::future_.
|
inline |
Definition at line 281 of file cancellable_future.h.
References kcenon::thread::cancellable_future< R >::future_.
|
inlinenodiscard |
Definition at line 286 of file cancellable_future.h.
References kcenon::thread::cancellable_future< R >::future_.
|
mutableprivate |
Definition at line 297 of file cancellable_future.h.
|
private |
Definition at line 298 of file cancellable_future.h.