![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Responsible for syncronization between the task and the receiving thread. More...
#include <Future.h>
Public Member Functions | |
| Receiver ()=default | |
| ~Receiver () | |
| Receiver (const Receiver &)=delete | |
| Receiver (Receiver &&)=delete | |
| bool | IsDone () const noexcept |
| void | Wait () |
| void | RequestStop () noexcept |
| Request the executing thread to stop as fast as possible. More... | |
| ResultType | GetResult () |
| Move the result away from the shared state, mark the future invalid. More... | |
Public Attributes | |
| std::atomic< bool > | m_Done {false} |
| std::atomic< bool > | m_StopRequest {false} |
| std::mutex | m_Mutex |
| std::condition_variable | m_ConditionVariable |
| std::variant< std::exception_ptr, NonVoid< ResultType > > | m_Outcome |
Responsible for syncronization between the task and the receiving thread.
|
default |
|
inline |
|
delete |
|
delete |
|
inline |
Move the result away from the shared state, mark the future invalid.
|
inlinenoexcept |
|
inlinenoexcept |
Request the executing thread to stop as fast as possible.
This is only a request the execution therad might ignore it.
RequestStop.
|
inline |
| std::condition_variable FutureSharedStateDetail::Receiver< ResultType >::m_ConditionVariable |
| std::atomic<bool> FutureSharedStateDetail::Receiver< ResultType >::m_Done {false} |
| std::mutex FutureSharedStateDetail::Receiver< ResultType >::m_Mutex |
| std::variant<std::exception_ptr, NonVoid<ResultType> > FutureSharedStateDetail::Receiver< ResultType >::m_Outcome |
| std::atomic<bool> FutureSharedStateDetail::Receiver< ResultType >::m_StopRequest {false} |