Name

TlsLast Variable

Syntax

unit SysInit;
var TlsLast: Byte;

Description

The address of TlsLast denotes the amount of memory required for storing threadvar variables. When a thread starts up, Delphi allocates that much memory in the thread-local storage (TLS) for storing threadvar variables. The address is nil if the program, library, or package does not use any threadvar variables, in which case the module does not allocate a TLS slot.

See Also

ThreadVar Keyword, TlsIndex Variable

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.