Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/ScopeLock.h |
Include |
#include "Misc/ScopeLock.h" |
class FScopeUnlock
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 } _
Name | Description | |
---|---|---|
|
FScopeUnlock ( |
Constructor that performs a unlock on the synchronization object |
Name | Description | |
---|---|---|
|
~FScopeUnlock() |
Destructor that performs a lock on the synchronization object. |