RtcplSetFreeStackOnTerminateThread

The function RtcplSetFreeStackOnTerminateThread sets cleanup behavior for TerminateThread calls.

Syntax

BOOL RtcplSetFreeStackOnTerminateThread(
    DWORD Enable
);

Parameters

Enable

Specifies whether to free a thread's stack on TerminateThread calls.

Value

Description

GENERAL_ENABLE

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

GENERAL_DISABLE

Do not free stack on TerminateThread calls.

Return Values

A non-zero value if the function succeeds

Remarks

Changing this behavior requires a restart of the RTX Subsystem if it is running, as indicated by a GetLastError of ERROR_SUCCESS_RESTART_REQUIRED.

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