RtcplGetFreeStackOnTerminateThread

The function RtcplGetFreeStackOnTerminateThread retrieves a parameter that specifies cleanup behavior for TerminateThread calls.

Syntax

BOOL RtcplGetFreeStackOnTerminateThread(
    PDWORD Enable
);

Parameters

Enable

Pointer to a DWORD that RtcplGetFreeStackOnTerminateThread populates with one of the following defines:

Value

Description

GENERAL_ENABLE

RTX frees stack on TerminateThread calls to free the memory used for an RTSS thread's stack when the thread is terminated.

GENERAL_DISABLE

RTX does not free stack on TerminateThread calls.

Return Values

A non-zero value if the function succeeds

Related RTX Properties Control Panel Features

Tab

System tab

Dialog Box

Click the Settings button in the Behavior area to open the Behavior Settings dialog box.

Feature(s)

Free stack on TerminateThread calls option

Requirements

Header RtxProp.h
Library RtxProp.lib
IntervalZero.com | Support | Give Feedback