UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FRWScopeLock Class Reference

#include <ScopeRWLock.h>

Public Member Functions

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

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.

Constructor & Destructor Documentation

◆ FRWScopeLock()

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

◆ ~FRWScopeLock()

FRWScopeLock::~FRWScopeLock ( )
inline

Member Function Documentation

◆ ReleaseReadOnlyLockAndAcquireWriteLock_USE_WITH_CAUTION()

void FRWScopeLock::ReleaseReadOnlyLockAndAcquireWriteLock_USE_WITH_CAUTION ( )
inline

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