Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FThreadSafeCounter
Description
Sets the counter to a specific value and returns the old value.
| Name | Set |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/ThreadSafeCounter.h |
| Include Path | #include "HAL/ThreadSafeCounter.h" |
int32 Set
(
int32 Value
)
The old value
Parameters
| Name | Remarks |
|---|---|
| Value | Value to set the counter to |