Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/ScopeRWLock.h |
Include |
#include "Misc/ScopeRWLock.h" |
class FRWScopeLock
Keeps a FRWLock read- or write-locked while this scope lives
Notes:
PThreads and Win32 API's don't provide a mechanism for upgrading a ownership of a read lock to a write lock - to get round that this system unlocks then acquires a write lock so it can race between.
Name | Description | |
---|---|---|
|
FRWScopeLock ( |
Name | Description | |
---|---|---|
|
~FRWScopeLock() |
Name | Description | ||
---|---|---|---|
|
ReleaseReadOnlyLockAndAcquireWriteLock_USE_WITH_CAUTION() |
NOTE: As the name suggests, this function should be used with caution. |