![]() |
Ark Server API (ASA) - Wiki
|
#include <ScopeLock.h>
Collaboration diagram for FScopeUnlock:Public Member Functions | |
| UE_NODISCARD_CTOR | FScopeUnlock (FCriticalSection *InSynchObject) |
| ~FScopeUnlock () | |
Private Member Functions | |
| FScopeUnlock () | |
| FScopeUnlock (const FScopeUnlock &InScopeLock) | |
| FScopeUnlock & | operator= (FScopeUnlock &InScopeLock) |
Private Attributes | |
| FCriticalSection * | SynchObject |
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 }
Definition at line 93 of file ScopeLock.h.
|
inline |
Constructor that performs a unlock on the synchronization object
| InSynchObject | The synchronization object to manage, can be null. |
Definition at line 102 of file ScopeLock.h.
Here is the call graph for this function:
|
inline |
Destructor that performs a lock on the synchronization object.
Definition at line 112 of file ScopeLock.h.
Here is the call graph for this function:
|
private |
Default constructor (hidden on purpose).
|
private |
Copy constructor( hidden on purpose).
|
inlineprivate |
Assignment operator (hidden on purpose).
Definition at line 128 of file ScopeLock.h.
|
private |
Definition at line 136 of file ScopeLock.h.