| FNiagaraSharedObject
|
Module |
|
Header |
/Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraDataSet.h |
Include |
#include "NiagaraDataSet.h" |
class FNiagaraSharedObject
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.
Name | Description | ||
---|---|---|---|
|
ReadRefCount |
Count of other object currently reading this data. |
Name | Description | |
---|---|---|
|
FNiagaraSharedObject() |
Name | Description | |
---|---|---|
|
~FNiagaraSharedObject() |
Name | Description | ||
---|---|---|---|
|
AddReadRef() |
||
|
Destroy() |
The owner of this object is now done with it but it may still be in use by others, possibly on other threads. |
|
|
FlushDeletionList() |
||
|
IsBeingRead() |
||
|
IsBeingWritten() |
||
|
IsInUse() |
||
|
ReleaseReadRef() |
||
|
TryLock() |
||
|
Unlock() |
Name |
Description |
---|---|
CritSec |
|
DeferredDeletionList |