FScopeUnlock

Implements a scope unlock.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/ScopeLock.h

Include

#include "Misc/ScopeLock.h"

Syntax

class FScopeUnlock

Remarks

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(SynchObject); ... When ScopeUnlock goes out of scope, other threads can no longer access data } _

Constructors

Name Description

Public function

FScopeUnlock

(
    FCriticalSection* InSynchObjec...
)

Constructor that performs a unlock on the synchronization object

Destructors

Name Description

Public function

~FScopeUnlock()

Destructor that performs a lock on the synchronization object.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss