Navigation
API > API/Plugins > API/Plugins/Niagara
Inheritance Hierarchy
- FNiagaraSharedObject
- FNiagaraDataBuffer
References
Module | Niagara |
Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraDataSet.h |
Include | #include "NiagaraDataSet.h" |
Syntax
class FNiagaraSharedObject
Remarks
Base class for objects in Niagara that are owned by one object but are then passed for reading to other objects, potentially on other threads. This class allows us to know if the object is being used so we do not overwrite it and to ensure it's lifetime so we do not access freed data.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TAtomic< int32 > | ReadRefCount | Count of other object currently reading this data. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddRef () |
|
![]() |
void | Destroy () |
The owner of this object is now done with it but it may still be in use by others, possibly on other threads. |
![]() ![]() |
void | ||
![]() ![]() |
bool | IsBeingRead () |
|
![]() ![]() |
bool | ||
![]() ![]() |
bool | IsInUse () |
|
![]() |
void | Release () |
|
![]() |
bool | TryLock () |
|
![]() |
void | Unlock () |
Constants
Name | Description |
---|---|
CritSec | |
DeferredDeletionList |