Navigation
API > API/Runtime > API/Runtime/Core
An eight-byte mutex that is not fair and supports recursive locking.
Prefer FMutex when recursive locking is not required.
| Name | FRecursiveMutex |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/RecursiveMutex.h |
| Include Path | #include "Async/RecursiveMutex.h" |
Syntax
class FRecursiveMutex
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
constexpr FRecursiveMutex () |
Async/RecursiveMutex.h | ||
FRecursiveMutex
(
const FRecursiveMutex& |
Async/RecursiveMutex.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| LockCountMask | uint32 | Async/RecursiveMutex.h | |
| LockCountShift | uint32 | Async/RecursiveMutex.h | |
| MayHaveWaitingLockFlag | uint32 | Async/RecursiveMutex.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| State | std::atomic< uint32 > | Async/RecursiveMutex.h | ||
| ThreadId | std::atomic< uint32 > | Async/RecursiveMutex.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsLocked() |
Async/RecursiveMutex.h | ||
void Lock() |
Async/RecursiveMutex.h | ||
bool TryLock() |
Async/RecursiveMutex.h | ||
void Unlock() |
Async/RecursiveMutex.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRecursiveMutex & operator=
(
const FRecursiveMutex& |
Async/RecursiveMutex.h |