Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Async
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Async/ExternalMutex.h |
| Include | #include "Async/ExternalMutex.h" |
Syntax
class FExternalMutex
Remarks
A mutex which takes it state from an external source and uses only its 2 LSBs. The external source must ensure that the state is valid for the lifetime of the mutex.
Note: Changes to this class should also be ported to FMutex. These classes could be merged via templatization but we would want to make sure this doesn't cause any undesired code-bloat / side effects.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| constexpr | FExternalMutex
(
std::atomic< uint8 >& InState |
||
FExternalMutex
(
const FExternalMutex& |
|||
FExternalMutex
(
std::atomic< uint8 >& InState, |
Construct in a locked state. Avoids an expensive compare-and-swap at creation time. |
Functions
Operators
| Type | Name | Description | |
|---|---|---|---|
| FExternalMutex & | operator=
(
const FExternalMutex& |
Constants
| Name | Description |
|---|---|
| HasWaitingThreadsFlag | |
| IsLockedFlag |