Navigation
API > API/Runtime > API/Runtime/MassEntity
Waits for an atomic variable to change or become a specific value. Used with FChangeScope for efficient synchronization of workers waiting for resources.
| Name | FChangeListener |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassProcessingQueueTypes.h |
| Include Path | #include "MassProcessingQueueTypes.h" |
Syntax
template<typename T>
struct FChangeListener
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FChangeListener
(
std::atomic< T >& InValueToTrack |
MassProcessingQueueTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| InitialValue | T | MassProcessingQueueTypes.h | ||
| ValueToTrack | std::atomic< T > & | MassProcessingQueueTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void WaitForChange() |
MassProcessingQueueTypes.h | ||
void WaitForValue
(
T TargetValue |
MassProcessingQueueTypes.h |