SimGrid
3.18
Versatile Simulation of Distributed Systems
|
Shared state for future and promises.
You are not expected to use them directly but to create them implicitely through a simgrid::kernel::Promise. Alternatively kernel operations could inherit or contain FutureState if they are managed with std::shared_ptr.
#include <future.hpp>
Public Member Functions | |
void | set_value (T value) |
T | get () |
![]() | |
FutureStateBase (FutureStateBase const &)=delete | |
FutureStateBase & | operator= (FutureStateBase const &)=delete |
void | schedule (simgrid::xbt::Task< void()> &&job) |
void | set_exception (std::exception_ptr exception) |
void | set_continuation (simgrid::xbt::Task< void()> &&continuation) |
FutureStatus | get_status () const |
bool | is_ready () const |
Additional Inherited Members | |
![]() | |
FutureStateBase ()=default | |
~FutureStateBase ()=default | |
void | set_ready () |
Set the future as ready and trigger the continuation. More... | |
void | resolve () |
Set the future as done and raise an exception if any. More... | |
|
inline |
|
inline |