March 2000
Intermediate to advanced
576 pages
18h 13m
English
TlsIndex Variable
unit SysInit; var TlsIndex: Integer;
Each module keeps track of its thread-local storage (TLS) slot for
implementing threadvar variables. When the module
is loaded, it checks TlsLast to see if the module
has any threadvar variables. If so, it requests a
TLS slot from Windows and saves the index in
TlsIndex. Do not change the value of this
variable. If the module cannot get a free TLS slot, it raises runtime
error 226.
| ThreadVar Keyword, TlsLast Variable |
Read now
Unlock full access