Navigation
API > API/Runtime > API/Runtime/Core
Unix implementation of the Process OS functions
| Name | FRunnableThreadUnix |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Unix/UnixPlatformRunnableThread.h |
| Include Path | #include "Unix/UnixPlatformRunnableThread.h" |
Syntax
class FRunnableThreadUnix : public FRunnableThreadPThread
Inheritance Hierarchy
- FRunnableThreadPThread → FRunnableThreadUnix
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRunnableThreadUnix() |
Unix/UnixPlatformRunnableThread.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FRunnableThreadUnix() |
Unix/UnixPlatformRunnableThread.h |
Structs
| Name | Remarks |
|---|---|
| EConstants |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MainThreadSignalHandlerStack | void * | Separate stack for the signal handler (so possible stack overflows don't go unnoticed), for the main thread specifically. | Unix/UnixPlatformRunnableThread.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BaselineNiceValue | int | Baseline priority (nice value). See explanation in SetPriority(). | Unix/UnixPlatformRunnableThread.h | |
| bGotBaselineNiceValue | bool | Whether the value of BaselineNiceValue has been obtained through getpriority(). | Unix/UnixPlatformRunnableThread.h | |
| StackGuardPageAddress | void * | Address of stack guard page - if nullptr, the page wasn't set | Unix/UnixPlatformRunnableThread.h | |
| ThreadCrashHandlingStack | void * | Each thread needs a separate stack for the signal handler, so possible stack overflows in the thread are handled | Unix/UnixPlatformRunnableThread.h |
Functions
Public
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetThreadPriority
(
EThreadPriority NewPriority |
Changes the thread priority of the currently running thread | Unix/UnixPlatformRunnableThread.h | |
virtual void SetThreadPriority
(
pthread_t InThread, |
Unix/UnixPlatformRunnableThread.h | ||
virtual int32 TranslateThreadPriority
(
EThreadPriority Priority |
On Unix, this translates to ranges of setpriority(). Note that not all range may be available | Unix/UnixPlatformRunnableThread.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void * AllocCrashHandlerStack() |
Unix/UnixPlatformRunnableThread.h | ||
static void FreeCrashHandlerStack
(
void* StackBuffer |
Unix/UnixPlatformRunnableThread.h | ||
static uint64 GetCrashHandlerStackSize() |
Unix/UnixPlatformRunnableThread.h | ||
static bool SetupSignalHandlerStack
(
void* StackBuffer, |
Sets up an alt stack for signal (including crash) handling on this thread. | Unix/UnixPlatformRunnableThread.h |