非同期処理クラス
More...
#include <AsyncTask.hpp>
template<class Type>
class s3d::AsyncTask< Type >
非同期処理クラス
- Template Parameters
-
Type | 非同期処理のタスクで実行する関数の戻り値の型 |
◆ base_type
◆ AsyncTask() [1/6]
◆ AsyncTask() [2/6]
◆ AsyncTask() [3/6]
◆ AsyncTask() [4/6]
template<class Type >
template<class Fty , class... Args, std::enable_if_t< std::is_invocable_v< Fty, Args... >> * = nullptr>
非同期処理のタスクを作成します
- Template Parameters
-
Fty | 非同期処理のタスクで実行する関数の型 |
...Args | 非同期処理のタスクで実行する関数の引数の型 |
- Parameters
-
f | 非同期処理のタスクで実行する関数 |
...args | 非同期処理のタスクで実行する関数の引数 |
◆ ~AsyncTask()
◆ AsyncTask() [5/6]
◆ AsyncTask() [6/6]
◆ get()
タスクが完了した非同期処理の結果を返します。
- Returns
- タスクが完了した非同期処理の結果
◆ isReady()
タスクが完了した非同期処理を持っていて、結果をすぐに返せる状態であるかを返します。
- Returns
- タスクが完了した非同期処理を持っていて、結果をすぐに返せる状態である場合 true, それ以外の場合は false
◆ isValid()
非同期処理を持っているかを返します。
- Returns
- 非同期処理を持っている場合 true, それ以外の場合は false
◆ operator=() [1/4]
◆ operator=() [2/4]
◆ operator=() [3/4]
◆ operator=() [4/4]
◆ share()
◆ wait()
◆ wait_for()
template<class Type >
template<class Rep , class Period >
std::future_status s3d::AsyncTask< Type >::wait_for |
( |
const std::chrono::duration< Rep, Period > & |
relTime | ) |
const |
◆ wait_until()
template<class Type >
template<class Clock , class Duration >
std::future_status s3d::AsyncTask< Type >::wait_until |
( |
const std::chrono::time_point< Clock, Duration > & |
absTime | ) |
const |
The documentation for this class was generated from the following file: