Navigation
Unreal Engine C++ API Reference > Runtime > Core > HAL
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/HAL/ThreadSafeCounter64.h |
Include | #include "HAL/ThreadSafeCounter64.h" |
Syntax
class FThreadSafeCounter64
Remarks
Thread safe counter for 64bit ints
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor.Initializes the counter to 0. | ||
![]() |
FThreadSafeCounter64
(
const FThreadSafeCounter64& Other |
Copy Constructor. | |
![]() |
FThreadSafeCounter64
(
int64 Value |
Constructor, initializing counter to passed in value. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
int64 | Adds an amount and returns the old value. | |
![]() |
int64 | Decrement () |
Decrement and return new value. |
![]() ![]() |
int64 | GetValue () |
Gets the current value. |
![]() |
int64 | Increment () |
Increment and return new value. |
![]() |
int64 | Reset () |
Resets the counter's value to zero. |
![]() |
int64 | Sets the counter to a specific value and returns the old value. | |
![]() |
int64 | Subtracts an amount and returns the old value. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FThreadSafeCounter64 & | operator=
(
const FThreadSafeCounter64& Other |
Assignment has the same caveats as the copy ctor. |
Typedefs
Name | Description |
---|---|
IntegerType |