ROOT 6.16/01 Reference Guide |
A TFuture class. It can wrap an std::future.
Definition at line 83 of file TFuture.hxx.
Public Member Functions | |
TFuture (std::future< T > &&fut) | |
T | get () |
Public Member Functions inherited from ROOT::Detail::TFutureImpl< T > | |
TFutureImpl (const TFutureImpl< T > &other)=delete | |
TFutureImpl< T > & | operator= (TFutureImpl< T > &other)=delete |
bool | valid () const |
void | wait () |
Private Member Functions | |
TFuture (std::future< T > &&fut, std::unique_ptr< TTaskGroup > &&tg) | |
Friends | |
template<class Function , class... Args> | |
TFuture< typename std::result_of< typename std::decay< Function >::type(typename std::decay< Args >::type...)>::type > | Async (Function &&f, Args &&... args) |
Runs a function asynchronously potentially in a new thread and returns a ROOT TFuture that will hold the result. More... | |
Additional Inherited Members | |
Protected Types inherited from ROOT::Detail::TFutureImpl< T > | |
using | TTaskGroup = Experimental::TTaskGroup |
Protected Member Functions inherited from ROOT::Detail::TFutureImpl< T > | |
TFutureImpl () | |
TFutureImpl (std::future< T > &&fut) | |
TFutureImpl (std::future< T > &&fut, std::unique_ptr< TTaskGroup > &&tg) | |
TFutureImpl (TFutureImpl< T > &&other) | |
TFutureImpl & | operator= (std::future< T > &&other) |
TFutureImpl< T > & | operator= (TFutureImpl< T > &&other)=default |
Protected Attributes inherited from ROOT::Detail::TFutureImpl< T > | |
std::future< T > | fStdFut |
std::unique_ptr< TTaskGroup > | fTg {nullptr} |
#include <ROOT/TFuture.hxx>
|
inlineprivate |
Definition at line 90 of file TFuture.hxx.
|
inline |
Definition at line 94 of file TFuture.hxx.
|
inline |
Definition at line 96 of file TFuture.hxx.
|
friend |
Runs a function asynchronously potentially in a new thread and returns a ROOT TFuture that will hold the result.
Definition at line 152 of file TFuture.hxx.