UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FScopeUnlock Class Reference

#include <ScopeLock.h>

+ Inheritance diagram for FScopeUnlock:

Public Member Functions

 FScopeUnlock (FCriticalSection *InSyncObject)
 

Detailed Description

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 }

Constructor & Destructor Documentation

◆ FScopeUnlock()

FScopeUnlock::FScopeUnlock ( FCriticalSection InSyncObject)
inlineexplicit

Constructor that performs a unlock on the synchronization object

Parameters
InSyncObjectThe synchronization object to manage, can be null.

The documentation for this class was generated from the following file: