|
DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Allow exclusive access to some of RunnableObject's private methods to class RunnableInstance.
More...
Private Member Functions | |
| constexpr | RunnableInstanceOnlyType (RunnableObject &Parent) noexcept |
Construcs an instance - one for each RunnableObject instance. | |
| void | OnThreadHasExited () const noexcept |
This function is called when the RunnableObject instance's thread terminates. The thread receives a RunnableInstance instance as a parameter. When it exits, this RunnableInstance instance is destroyed. So, RunnableInstance's destructor is invoked. It calls RunnableInstance::SetThreadExited(), which in turn calls this function, and signals the thread termination to ThreadExitedSignal. | |
| bool | IsLinkedObjStateCheckRequested () const noexcept |
Indicates whether the RunnableInstance instance belonging to this RunnableObject instance's thread should recheck the states of all Object instances this RunnableObject uses. | |
| void | ResetLinkedObjStateCheckRequested () const noexcept |
| Sets RunnableObject::LinkedObjStateCheckRequested to false. | |
Private Attributes | |
| RunnableObject & | Parent |
Owning RunnableObject instance. | |
Friends | |
| class | RunnableObject |
| class | RunnableInstance |
Allow exclusive access to some of RunnableObject's private methods to class RunnableInstance.
|
inlineconstexprprivatenoexcept |
Construcs an instance - one for each RunnableObject instance.
| Parent | Owning RunnableObject instance |
|
inlineprivatenoexcept |
Indicates whether the RunnableInstance instance belonging to this RunnableObject instance's thread should recheck the states of all Object instances this RunnableObject uses.
|
inlineprivatenoexcept |
This function is called when the RunnableObject instance's thread terminates. The thread receives a RunnableInstance instance as a parameter. When it exits, this RunnableInstance instance is destroyed. So, RunnableInstance's destructor is invoked. It calls RunnableInstance::SetThreadExited(), which in turn calls this function, and signals the thread termination to ThreadExitedSignal.
|
inlineprivatenoexcept |
Sets RunnableObject::LinkedObjStateCheckRequested to false.
|
friend |
|
friend |
|
private |
Owning RunnableObject instance.