![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SharedLock.h>
Public Member Functions | |
| TDynamicSharedLock ()=default | |
| TDynamicSharedLock (const TDynamicSharedLock &)=delete | |
| TDynamicSharedLock & | operator= (const TDynamicSharedLock &)=delete |
| TDynamicSharedLock (LockType &Lock) | |
| TDynamicSharedLock (LockType &Lock, FDeferLock) | |
| TDynamicSharedLock (TDynamicSharedLock &&Other) | |
| TDynamicSharedLock & | operator= (TDynamicSharedLock &&Other) |
| ~TDynamicSharedLock () | |
| bool | TryLock () |
| void | Lock () |
| void | Unlock () |
| bool | OwnsLock () const |
| operator bool () const | |
A shared mutex ownership wrapper that allows dynamic locking, unlocking, and deferred locking.
LockType must contain LockShared() and UnlockShared() functions.
Use with mutex types like FSharedMutex and FSharedRecursiveMutex.
|
default |
|
delete |
|
inlineexplicit |
Wrap a mutex and lock it in shared mode.
|
inlineexplicit |
Wrap a mutex without locking it in shared mode.
|
inline |
Move from another lock, transferring any ownership to this lock.
|
inline |
Unlock the mutex if locked.
|
inline |
Lock the associated mutex in shared mode. This lock must have a mutex and must not be locked.
|
inlineexplicit |
Returns true if this lock has its associated mutex locked.
|
delete |
|
inline |
Move from another lock, transferring any ownership to this lock, and unlocking the previous mutex if locked.
|
inline |
Returns true if this lock has its associated mutex locked.
|
inline |
Try to lock the associated mutex in shared mode. This lock must have a mutex and must not be locked.
|
inline |
Unlock the associated mutex in shared mode. This lock must have a mutex and must be locked.