|
Lunchbox
1.15.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>
Inheritance diagram for lunchbox::Future< T >:
Collaboration diagram for lunchbox::Future< T >: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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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::Request< T >::~Request().
Here is the caller graph for this function: