Navigation
API > API/Runtime > API/Runtime/Core
Implements a scope unlock.
This is a utility class that handles scope level unlocking. It's very useful to allow access to a protected object when you are sure it can happen. Example:
` { // Access data that is shared among multiple threads FScopeUnlock ScopeUnlock(SyncObject); ... // When ScopeUnlock goes out of scope, other threads can no longer access data } _
| Name | FScopeUnlock |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/ScopeLock.h |
| Include Path | #include "Misc/ScopeLock.h" |
Syntax
class FScopeUnlock : private UE::TScopeUnlock< FCriticalSection >
Inheritance Hierarchy
- TScopeUnlock → FScopeUnlock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FScopeUnlock
(
FCriticalSection* InSyncObject |
Constructor that performs a unlock on the synchronization object | Misc/ScopeLock.h |