#include <ThreadSafeCounter.h>
Thread safe counter
Definition at line 13 of file ThreadSafeCounter.h.
◆ IntegerType
◆ FThreadSafeCounter() [1/3]
FThreadSafeCounter::FThreadSafeCounter |
( |
| ) |
|
|
inline |
◆ FThreadSafeCounter() [2/3]
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.
- Parameters
-
Other | The other thread safe counter to copy |
Definition at line 41 of file ThreadSafeCounter.h.
◆ FThreadSafeCounter() [3/3]
FThreadSafeCounter::FThreadSafeCounter |
( |
int32 | Value | ) |
|
|
inline |
Constructor, initializing counter to passed in value.
- Parameters
-
Value | Value to initialize counter to |
Definition at line 55 of file ThreadSafeCounter.h.
◆ Add()
◆ Decrement()
int32 FThreadSafeCounter::Decrement |
( |
| ) |
|
|
inline |
◆ GetValue()
int32 FThreadSafeCounter::GetValue |
( |
| ) |
const |
|
inline |
◆ Increment()
int32 FThreadSafeCounter::Increment |
( |
| ) |
|
|
inline |
◆ operator=()
◆ Reset()
int32 FThreadSafeCounter::Reset |
( |
| ) |
|
|
inline |
◆ Set()
◆ Subtract()
int32 FThreadSafeCounter::Subtract |
( |
int32 | Amount | ) |
|
|
inline |
◆ Counter
The documentation for this class was generated from the following file:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASA/AsaApi/AsaApi/Core/Public/API/UE/HAL/ThreadSafeCounter.h