#include <jobs.hpp>
Public Method Index: | |
JPromise (const std::type_info &id) | |
virtual | ~JPromise () override=default |
Virtual destructor. | |
virtual void | PrepareDeferredDeletion () override |
virtual size_t | SizeOf () override |
Public Method Index: inherited from Job | |
Job (const std::type_info &id) | |
virtual | ~Job ()=default |
Protected destructor. | |
template<typename TJob > | |
TJob & | Cast () |
virtual bool | Do () |
template<typename TOther > | |
bool | Is () |
template<typename TOther > | |
bool | IsNull () |
Public Method Index: inherited from Promise | |
Promise () | |
Default constructor. Sets the state to State::Unfulfilled. | |
~Promise () | |
Destructor. | |
void | DbgOmitDestructionWarning () |
void | Fulfill (const CallerInfo &ci, State state=State::OK) |
State | Wait (ALIB_DBG_TAKE_CI) |
State | WaitFor (const Ticks::Duration &maxWaitTimeSpan, const CallerInfo &ci) |
State | WaitFor (const Ticks::Duration::TDuration &maxWaitTimeSpan, const CallerInfo &ci) |
State | WaitUntil (const Ticks &wakeUpTime, const CallerInfo &ci) |
Additional Inherited Members | |
Public Type Index: inherited from Promise | |
enum class | State { Unfulfilled , OK , Error , EmergencyStop , Custom } |
Public Field Index: inherited from Job | |
const std::type_info & | ID |
Public Field Index: inherited from Promise | |
lang::CallerInfo | DbgFulfillCI |
lang::CallerInfo | DbgWaitCI |
Ticks::Duration | DbgWaitTimeLimit = Ticks::Duration::FromAbsoluteSeconds(2) |
Protected Field Index: inherited from Promise | |
std::future< State > | future |
Used for implementation. | |
std::promise< State > | promise |
Used for implementation. | |
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |