Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
UE::FSpinLock Class Reference

#include <SpinLock.h>

Public Member Functions

 UE_NONCOPYABLE (FSpinLock)
 
 FSpinLock ()=default
 
void Lock ()
 
bool TryLock ()
 
void Unlock ()
 

Private Attributes

std::atomic< boolbFlag { false }
 

Detailed Description

Definition at line 14 of file SpinLock.h.

Constructor & Destructor Documentation

◆ FSpinLock()

UE::FSpinLock::FSpinLock ( )
default

Member Function Documentation

◆ Lock()

void UE::FSpinLock::Lock ( )
inline

Definition at line 21 of file SpinLock.h.

◆ TryLock()

bool UE::FSpinLock::TryLock ( )
inline

Definition at line 37 of file SpinLock.h.

◆ UE_NONCOPYABLE()

UE::FSpinLock::UE_NONCOPYABLE ( FSpinLock )

◆ Unlock()

void UE::FSpinLock::Unlock ( )
inline

Definition at line 42 of file SpinLock.h.

Member Data Documentation

◆ bFlag

std::atomic<bool> UE::FSpinLock::bFlag { false }
private

Definition at line 48 of file SpinLock.h.


The documentation for this class was generated from the following file: