UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::TSharedLock< LockType > Class Template Referencefinal

#include <SharedLock.h>

Public Member Functions

 TSharedLock (const TSharedLock &)=delete
 
TSharedLockoperator= (const TSharedLock &)=delete
 
 TSharedLock (LockType &Lock)
 
 ~TSharedLock ()
 

Detailed Description

template<typename LockType>
class UE::TSharedLock< LockType >

A basic shared mutex ownership wrapper that locks on construction and unlocks on destruction.

LockType must contain LockShared() and UnlockShared() functions.

Use with mutex types like FSharedMutex and FSharedRecursiveMutex.

Constructor & Destructor Documentation

◆ TSharedLock() [1/2]

template<typename LockType >
UE::TSharedLock< LockType >::TSharedLock ( const TSharedLock< LockType > &  )
delete

◆ TSharedLock() [2/2]

template<typename LockType >
UE::TSharedLock< LockType >::TSharedLock ( LockType &  Lock)
inlineexplicit

◆ ~TSharedLock()

template<typename LockType >
UE::TSharedLock< LockType >::~TSharedLock ( )
inline

Member Function Documentation

◆ operator=()

template<typename LockType >
TSharedLock & UE::TSharedLock< LockType >::operator= ( const TSharedLock< LockType > &  )
delete

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