Navigation
API > API/Runtime > API/Runtime/Core
A recursive mutex that is the size of two pointers and does not depend on ParkingLot.
Prefer FRecursiveMutex to FRecursiveWordMutex whenever possible. This mutex is not fair and supports recursive locking.
This type is valuable when a mutex must be trivially constructible, trivially destructible, or must be functional before or after static initialization.
| Name | FRecursiveWordMutex |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/RecursiveWordMutex.h |
| Include Path | #include "Async/RecursiveWordMutex.h" |
Syntax
class FRecursiveWordMutex
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Mutex | FWordMutex | Async/RecursiveWordMutex.h | ||
| RecursionCount | uint32 | Async/RecursiveWordMutex.h | ||
| ThreadId | std::atomic< uint32 > | Async/RecursiveWordMutex.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsLocked() |
Async/RecursiveWordMutex.h | ||
bool IsLockedByCurrentThread() |
Async/RecursiveWordMutex.h | ||
void Lock() |
Async/RecursiveWordMutex.h | ||
bool TryLock() |
Async/RecursiveWordMutex.h | ||
void Unlock() |
Async/RecursiveWordMutex.h |