Navigation
API > API/Runtime > API/Runtime/Core
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.
| Name | TSharedLock |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/SharedLock.h |
| Include Path | #include "Async/SharedLock.h" |
Syntax
template<typename LockType>
class TSharedLock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedLock
(
const TSharedLock& |
Async/SharedLock.h | ||
TSharedLock
(
LockType& Lock |
Async/SharedLock.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TSharedLock() |
Async/SharedLock.h |
Class Specializations
| Name | Remarks |
|---|---|
| TSharedLock< FSharedRecursiveMutex > |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Mutex | LockType & | Async/SharedLock.h |
Functions
Public
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedLock & operator=
(
const TSharedLock& |
Async/SharedLock.h |