Allow exclusive access to some of ModuleBase's private methods to the module thread ModuleThreadMain().
More...
Allow exclusive access to some of ModuleBase's private methods to the module thread ModuleThreadMain().
Definition at line 433 of file Module.h.
◆ ModuleThreadOnlyType()
| constexpr DynExp::ModuleBase::ModuleThreadOnlyType::ModuleThreadOnlyType |
( |
ModuleBase & |
Parent | ) |
|
|
inlineconstexprprivatenoexcept |
Construcs an instance - one for each ModuleBase instance.
- Parameters
-
Definition at line 442 of file Module.h.
◆ HandleEvent()
| void DynExp::ModuleBase::ModuleThreadOnlyType::HandleEvent |
( |
ModuleInstance & |
Instance | ) |
|
|
inlineprivate |
◆ ModuleMainLoop()
◆ OnError()
| void DynExp::ModuleBase::ModuleThreadOnlyType::OnError |
( |
ModuleInstance & |
Instance | ) |
|
|
inlineprivate |
◆ OnPause()
| void DynExp::ModuleBase::ModuleThreadOnlyType::OnPause |
( |
ModuleInstance & |
Instance | ) |
|
|
inlineprivate |
◆ OnResume()
| void DynExp::ModuleBase::ModuleThreadOnlyType::OnResume |
( |
ModuleInstance & |
Instance | ) |
|
|
inlineprivate |
◆ SetException()
| void DynExp::ModuleBase::ModuleThreadOnlyType::SetException |
( |
std::exception_ptr |
Exception | ) |
|
|
inlineprivatenoexcept |
Sets this module instance to an error state and tries to store the exception responsible for the error state in ModuleData. If ModuleData cannot be locked, still atomically sets an error flag.
- Parameters
-
| Exception | Exception to store. |
Definition at line 446 of file Module.h.
◆ SetReasonWhyPaused()
| void DynExp::ModuleBase::ModuleThreadOnlyType::SetReasonWhyPaused |
( |
std::string |
Description | ) |
|
|
inlineprivate |
◆ ModuleBase
◆ ModuleThreadMain
Modules run in their own thread. This is the module thread's main function.
- Parameters
-
| InstancePtr | Pointer to a handle to the module thread's data related to the module running this thread. The module thread takes ownership of InstancePtr and is expected to let the lifetime of InstancePtr expire upon termination. |
| BaseObject | Pointer to the module running this thread. |
- Returns
- Util::DynExpErrorCodes::NoError if the thread terminated without an error, the respective error code otherwise.
Definition at line 10 of file Module.cpp.
◆ Parent
| ModuleBase& DynExp::ModuleBase::ModuleThreadOnlyType::Parent |
|
private |
The documentation for this class was generated from the following file: