![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <UniqueLock.h>
Public Member Functions | |
| TDynamicUniqueLock ()=default | |
| TDynamicUniqueLock (const TDynamicUniqueLock &)=delete | |
| TDynamicUniqueLock & | operator= (const TDynamicUniqueLock &)=delete |
| TDynamicUniqueLock (LockType &Lock) | |
| TDynamicUniqueLock (LockType &Lock, FDeferLock) | |
| TDynamicUniqueLock (TDynamicUniqueLock &&Other) | |
| TDynamicUniqueLock & | operator= (TDynamicUniqueLock &&Other) |
| ~TDynamicUniqueLock () | |
| void | Lock () |
| void | Unlock () |
| bool | OwnsLock () const |
| operator bool () const | |
A mutex ownership wrapper that allows dynamic locking, unlocking, and deferred locking.
LockType must contain Lock() and Unlock() functions.
Use with mutex types like FMutex and FRecursiveMutex.
|
default |
|
delete |
|
inlineexplicit |
Wrap a mutex and lock it.
|
inlineexplicit |
Wrap a mutex without locking it.
|
inline |
Move from another lock, transferring any ownership to this lock.
|
inline |
Unlock the mutex if locked.
|
inline |
Lock the associated mutex. 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 |
Unlock the associated mutex. This lock must have a mutex and must be locked.