Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
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
Type | Name | Description | |
---|---|---|---|
![]() |
FScopeUnlock
(
FCriticalSection* InSynchObject |
Constructor that performs a unlock on the synchronization object |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructor that performs a lock on the synchronization object. |