|
TECA
The Toolkit for Extreme Climate Analysis
|
a future that is owned by a single thread More...
#include <teca_owned_future.h>
Public Member Functions | |
| owned_future (const owned_future &)=delete | |
| void | operator= (const owned_future &)=delete |
| owned_future (owned_future &&other) | |
| move construct from another instance More... | |
| owned_future (std::future< data_t > &&future) | |
| move contruct from std::future More... | |
| void | operator= (owned_future &&other) |
| move assign form anotehr instance More... | |
| bool | owner () |
| true if this future belongs to the calling thread More... | |
| data_t & | get () |
| access the managed future's data More... | |
Public Attributes | |
| std::future< data_t > | m_future |
| the managed future More... | |
| std::thread::id | m_owner |
| the thread id of the thread which created the future More... | |
a future that is owned by a single thread
|
inline |
move construct from another instance
|
inline |
move contruct from std::future
|
inline |
access the managed future's data
|
inline |
move assign form anotehr instance
|
inline |
true if this future belongs to the calling thread
| std::future<data_t> owned_future< data_t >::m_future |
the managed future
| std::thread::id owned_future< data_t >::m_owner |
the thread id of the thread which created the future