RtfwGetCurrentScheduledProcessCount

RtfwGetCurrentScheduledProcessCount retrieves the total number of scheduled processes.

Syntax

Copy
bool RtfwGetCurrentScheduledProcessCount(
    [out]   size_t * count
);

Parameters

[out] count

Returns the current number of scheduled processes.

Return Value

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

Possible error codes:

Error code Meaning

ERROR_INVALID_PARAMETER

One of the parameters of this function is NULL, or a field within the structure is invalid.

Remarks

This function has locking to allow for thread safety. It shares a lock with all other scheduled process functions.

If the Subsystem is running when the RtfwGetLocalMemoryConfiguration API is called, the values returned by this function may differ from the values currently in use by the Subsystem.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtfwApi.h

RtfwApi.lib

See Also: