Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FRWScopeLock Class Reference

#include <ScopeRWLock.h>

+ Collaboration diagram for FRWScopeLock:

Public Member Functions

UE_NODISCARD_CTOR FRWScopeLock (FRWLock &InLockObject, FRWScopeLockType InLockType)
 
void ReleaseReadOnlyLockAndAcquireWriteLock_USE_WITH_CAUTION ()
 
 ~FRWScopeLock ()
 

Private Member Functions

 UE_NONCOPYABLE (FRWScopeLock)
 

Private Attributes

FRWLockLockObject
 
FRWScopeLockType LockType
 

Detailed Description

Keeps a FRWLock read- or write-locked while this scope lives

Notes:

  • PThreads and Win32 API's don't provide a mechanism for upgrading a ownership of a read lock to a write lock - to get round that this system unlocks then acquires a write lock so it can race between.

Definition at line 67 of file ScopeRWLock.h.

Constructor & Destructor Documentation

◆ FRWScopeLock()

UE_NODISCARD_CTOR FRWScopeLock::FRWScopeLock ( FRWLock & InLockObject,
FRWScopeLockType InLockType )
inlineexplicit

Definition at line 70 of file ScopeRWLock.h.

+ Here is the call graph for this function:

◆ ~FRWScopeLock()

FRWScopeLock::~FRWScopeLock ( )
inline

Definition at line 98 of file ScopeRWLock.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ ReleaseReadOnlyLockAndAcquireWriteLock_USE_WITH_CAUTION()

void FRWScopeLock::ReleaseReadOnlyLockAndAcquireWriteLock_USE_WITH_CAUTION ( )
inline

Definition at line 88 of file ScopeRWLock.h.

+ Here is the call graph for this function:

◆ UE_NONCOPYABLE()

FRWScopeLock::UE_NONCOPYABLE ( FRWScopeLock )
private

Member Data Documentation

◆ LockObject

FRWLock& FRWScopeLock::LockObject
private

Definition at line 113 of file ScopeRWLock.h.

◆ LockType

FRWScopeLockType FRWScopeLock::LockType
private

Definition at line 114 of file ScopeRWLock.h.


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