Navigation
API > API/Runtime > API/Runtime/Core
A one-byte mutex that is not fair and does not support recursive locking.
| Name | FMutex |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/Mutex.h |
| Include Path | #include "Async/Mutex.h" |
Syntax
class FMutex
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
constexpr FMutex () |
Async/Mutex.h | ||
FMutex
(
FAcquireLock |
Construct in a locked state. Avoids an expensive compare-and-swap at creation time. | Async/Mutex.h | |
| Async/Mutex.h |
Structs
| Name | Remarks |
|---|---|
| FParams |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| IsLockedFlag | uint8 | Async/Mutex.h | |
| MayHaveWaitingLockFlag | uint8 | Async/Mutex.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| State | std::atomic< uint8 > | Async/Mutex.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsLocked() |
Async/Mutex.h | ||
void Lock() |
Async/Mutex.h | ||
bool TryLock() |
Async/Mutex.h | ||
void Unlock() |
Async/Mutex.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Async/Mutex.h |