Navigation
API > API/Runtime > API/Runtime/Core
A basic mutex ownership wrapper that locks on construction and unlocks on destruction.
LockType must contain Lock() and Unlock() functions.
Use with mutex types like FMutex and FRecursiveMutex.
| Name | TUniqueLock |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/UniqueLock.h |
| Include Path | #include "Async/UniqueLock.h" |
Syntax
template<typename LockType>
class TUniqueLock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TUniqueLock
(
const TUniqueLock& |
Async/UniqueLock.h | ||
TUniqueLock
(
LockType& Lock |
Async/UniqueLock.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TUniqueLock() |
Async/UniqueLock.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Mutex | LockType & | Async/UniqueLock.h |
Functions
Public
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TUniqueLock & operator=
(
const TUniqueLock& |
Async/UniqueLock.h |