Lunchbox
1.10.0
|
Base class to implement the wait method fulfilling the future. More...
#include <future.h>
Public Member Functions | |
virtual | ~FutureImpl () |
Destruct the future. More... | |
virtual T | wait (const uint32_t timeout=LB_TIMEOUT_INDEFINITE)=0 |
Wait for the promise to be fullfilled. More... | |
virtual bool | isReady () const =0 |
Public Member Functions inherited from lunchbox::Referenced | |
void | ref (const void *holder LB_UNUSED=0) const |
Increase the reference count. More... | |
bool | unref (const void *holder LB_UNUSED=0) const |
Decrease the reference count. More... | |
int32_t | getRefCount () const |
void | printHolders (std::ostream &) const |
Additional Inherited Members | |
Protected Member Functions inherited from lunchbox::Referenced | |
LUNCHBOX_API | Referenced () |
Construct a new reference-counted object. More... | |
Referenced (const Referenced &) | |
Construct a new copy of a reference-counted object. More... | |
virtual LUNCHBOX_API | ~Referenced () |
Destruct a reference-counted object. More... | |
Referenced & | operator= (const Referenced &) |
Assign another object to this object. More... | |
virtual LUNCHBOX_API void | notifyFree () |
Base class to implement the wait method fulfilling the future.
|
inlinevirtual |
|
pure virtual |
Implemented in lunchbox::Request< T >::Impl, lunchbox::FutureFunction< T >, and lunchbox::FutureTrue.
|
pure virtual |
Wait for the promise to be fullfilled.
May be called multiple times.
timeout | optional timeout in milliseconds. If the future is not ready when the timer goes off a timeout exception is thrown. |
Implemented in lunchbox::Request< T >::Impl, lunchbox::Request< T >::Impl, lunchbox::FutureFunction< T >, and lunchbox::FutureTrue.