Navigation
API > API/Runtime > API/Runtime/Core
RAII-style scope locking of a synchronization primitive. MutexType_ is required to implement Lock_ and `Unlock_ methods. Example: { TScopeLock
| Name | TScopeLock |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/ScopeLock.h |
| Include Path | #include "Misc/ScopeLock.h" |
Syntax
template<typename MutexType>
class TScopeLock
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TScopeLock
(
TScopeLock&& |
Misc/ScopeLock.h | ||
TScopeLock
(
const TScopeLock& |
Misc/ScopeLock.h | ||
TScopeLock
(
MutexType& InMutex |
Misc/ScopeLock.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TScopeLock() |
Misc/ScopeLock.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Mutex | MutexType * | Misc/ScopeLock.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Unlock() |
Misc/ScopeLock.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TScopeLock & operator=
(
const TScopeLock& |
Misc/ScopeLock.h | ||
TScopeLock & operator=
(
TScopeLock&& |
Misc/ScopeLock.h |