RtfwGetDefaultIdealProcessor

The RtfwGetDefaultIdealProcessor function retrieves the default core where the subsystem will run a process' main thread unless an ideal processor is provided when running the process.

Syntax

Copy
bool RtfwGetDefaultIdealProcessor(
    [out] DWORD* pDefaultIdealProcessor
);

Parameters

[out] pDefaultIdealProcessor

A pointer to a DWORD variable that receives the identifier of the default ideal processor.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.

Remarks

Note: A pDefaultIdealProcessor value lower than the first core or higher than the total number of available cores can only occur if the user manually modifies the system configuration, such as by enabling or disabling hyper-threading.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtfwApi.h

RtfwApi.lib

See Also: