![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ThreadSafeCounter64.h>
Public Types | |
| typedef int64 | IntegerType |
Public Member Functions | |
| FThreadSafeCounter64 () | |
| FThreadSafeCounter64 (const FThreadSafeCounter64 &Other) | |
| FThreadSafeCounter64 & | operator= (const FThreadSafeCounter64 &Other) |
| FThreadSafeCounter64 (int64 Value) | |
| int64 | Increment () |
| int64 | Add (int64 Amount) |
| int64 | Decrement () |
| int64 | Subtract (int64 Amount) |
| int64 | Set (int64 Value) |
| int64 | Reset () |
| int64 | GetValue () const |
Thread safe counter for 64bit ints
|
inline |
Default constructor.
Initializes the counter to 0.
|
inline |
Copy Constructor.
If the counter in the Other parameter is changing from other threads, there are no guarantees as to which values you will get up to the caller to not care, synchronize or other way to make those guarantees.
| Other | The other thread safe counter to copy |
|
inline |
Constructor, initializing counter to passed in value.
| Value | Value to initialize counter to |
|
inline |
|
inline |
Gets the current value.
|
inline |
|
inline |
Assignment has the same caveats as the copy ctor.
|
inline |