Public Method Index: | |
JPromise (const std::type_info &id) | |
virtual | ~JPromise () override=default |
Virtual destructor. | |
virtual void | PrepareDeferredDeletion () override |
virtual size_t | SizeOf () override |
![]() | |
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 () |
![]() | |
Promise () | |
Default constructor. Sets the state to State::Unfulfilled. | |
~Promise () | |
Destructor. | |
void | DbgOmitDestructionWarning () |
void | Fulfill (const CallerInfo &ci, State state=State::OK) |
State | Wait (const CallerInfo &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 | |
![]() | |
enum class | State { Unfulfilled , OK , Error , EmergencyStop , Custom } |
![]() | |
const std::type_info & | ID |
![]() | |
lang::CallerInfo | DbgFulfillCI |
lang::CallerInfo | DbgWaitCI |
Ticks::Duration | DbgWaitTimeLimit = Ticks::Duration::FromAbsoluteSeconds(2) |
![]() | |
std::future< State > | future |
Used for implementation. | |
std::promise< State > | promise |
Used for implementation. | |
|
inline |
|
inlineoverridevirtual |
Overrides the parent function only with debug-compilations. Avoids warnings about destroying unused promise
Reimplemented from alib::threadmodel::Job.
Definition at line 164 of file jobs.inl.
|
inlineoverridevirtual |
Overrides the parent function as necessary.
Reimplemented from alib::threadmodel::Job.
Definition at line 159 of file jobs.inl.