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 alib::threadmodel::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 alib::threads::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 (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 | |
Public Type Index: inherited from alib::threads::Promise | |
| enum class | State { Unfulfilled , OK , Error , EmergencyStop , Custom } |
Public Field Index: inherited from alib::threadmodel::Job | |
| const std::type_info & | ID |
Public Field Index: inherited from alib::threads::Promise | |
| lang::CallerInfo | DbgFulfillCI |
| lang::CallerInfo | DbgWaitCI |
| Ticks::Duration | DbgWaitTimeLimit = Ticks::Duration::FromAbsoluteSeconds(2) |
Protected Field Index: inherited from alib::threads::Promise | |
| 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.