Lunchbox
1.13.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
A future represents a asynchronous operation. More...
#include <future.h>
Public Types | |
typedef RefPtr< FutureImpl< T > > | Impl |
The wait implementation. | |
Public Member Functions | |
Future (Impl impl) | |
Construct a new future. More... | |
~Future () | |
Destruct the future. More... | |
T | wait (const uint32_t timeout_=LB_TIMEOUT_INDEFINITE) |
Wait for the promise to be fullfilled. More... | |
bool | isReady () const |
Blocking comparison operators. | |
operator bool_t () | |
bool | operator! () |
bool | operator== (const T &rhs) |
bool | operator!= (const T &rhs) |
bool | operator< (const T &rhs) |
bool | operator> (const T &rhs) |
bool | operator<= (const T &rhs) |
bool | operator>= (const T &rhs) |
Protected Attributes | |
Impl | impl_ |
A future represents a asynchronous operation.
Do not subclass.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Definition at line 95 of file future.h.
References lunchbox::Future< T >::wait().
|
inline |
Definition at line 98 of file future.h.
References lunchbox::Future< T >::wait().
|
inline |
Definition at line 104 of file future.h.
References lunchbox::Future< T >::wait().
|
inline |
Definition at line 107 of file future.h.
References lunchbox::Future< T >::wait().
|
inline |
Definition at line 113 of file future.h.
References lunchbox::Future< T >::wait().
|
inline |
Definition at line 101 of file future.h.
References lunchbox::Future< T >::wait().
|
inline |
Definition at line 110 of file future.h.
References lunchbox::Future< T >::wait().
|
inline |
Definition at line 116 of file future.h.
References lunchbox::Future< T >::wait().
|
inline |
Wait for the promise to be fullfilled.
timeout_ | optional timeout in milliseconds. If the future is not ready when the timer goes off a timeout exception is thrown. |
Definition at line 82 of file future.h.
Referenced by lunchbox::Future< T >::operator bool_t(), lunchbox::Future< T >::operator!(), lunchbox::Future< T >::operator!=(), lunchbox::Future< T >::operator<(), lunchbox::Future< T >::operator<=(), lunchbox::Future< T >::operator==(), lunchbox::Future< T >::operator>(), and lunchbox::Future< T >::operator>=().