A TFuture class. It can wrap an std::future.
Definition at line 84 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< ROOT::TypeTraits::InvokeResult_t< typename std::decay< Function >::type, typename std::decay< Args >::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. | |
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 91 of file TFuture.hxx.
|
inline |
Definition at line 95 of file TFuture.hxx.
|
inline |
Definition at line 97 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 153 of file TFuture.hxx.