Choose your operating system:
Windows
macOS
Linux
| FThreadSafeCounter
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/HAL/ThreadSafeCounter.h |
Include |
#include "HAL/ThreadSafeCounter.h" |
class FThreadSafeCounter
Thread safe counter
Name | Description | |
---|---|---|
|
FThreadSafeCounter() |
Default constructor. Initializes the counter to 0. |
|
FThreadSafeCounter ( |
Copy Constructor. |
|
FThreadSafeCounter ( |
Constructor, initializing counter to passed in value. |
Name | Description | ||
---|---|---|---|
|
Add ( |
Adds an amount and returns the old value. |
|
|
Decrement() |
Decrement and return new value. |
|
|
GetValue() |
Gets the current value. |
|
|
Increment() |
Increment and return new value. |
|
|
Reset() |
Resets the counter's value to zero. |
|
|
Set ( |
Sets the counter to a specific value and returns the old value. |
|
|
Subtract ( |
Subtracts an amount and returns the old value. |
Name |
Description |
---|---|
IntegerType |