Ark Server API (ASA) - Wiki
|
#include <ThreadSafeBool.h>
Public Member Functions | |
FThreadSafeBool (bool bValue=false) | |
FORCEINLINE | operator bool () const |
FORCEINLINE bool | operator= (bool bNewValue) |
FORCEINLINE bool | AtomicSet (bool bNewValue) |
Additional Inherited Members | |
Private Types inherited from FThreadSafeCounter | |
typedef int32 | IntegerType |
Private Member Functions inherited from FThreadSafeCounter | |
FThreadSafeCounter () | |
FThreadSafeCounter (const FThreadSafeCounter &Other) | |
FThreadSafeCounter (int32 Value) | |
int32 | Increment () |
int32 | Add (int32 Amount) |
int32 | Decrement () |
int32 | Subtract (int32 Amount) |
int32 | Set (int32 Value) |
int32 | Reset () |
int32 | GetValue () const |
Thread safe bool, wraps FThreadSafeCounter
Definition at line 15 of file ThreadSafeBool.h.
Constructor optionally takes value to initialize with, otherwise initializes false
bValue | Value to initialize with |
Definition at line 23 of file ThreadSafeBool.h.
|
inline |
Sets a new value atomically, and returns the old value.
bNewValue | Value to set |
Definition at line 50 of file ThreadSafeBool.h.
|
inline |
Operator to use this struct as a bool with thread safety
Definition at line 30 of file ThreadSafeBool.h.
|
inline |
Operator to set the bool value with thread safety
Definition at line 38 of file ThreadSafeBool.h.