Unit 'exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

TLSFree

Free Thread-Local Storage index

Declaration

Source position: exec.pas line 2346

function TLSFree(

  Idx: LongWord

):LongInt;

Arguments

Idx

  

Index to free. Must have been allocated with TLSAlloc earlier. Passing TLS_INVALID_INDEX is safe and does nothing.

Description

Deallocates a Thread-Local Storage index and returns it to the global index pool.

Attention

It is illegal to free a Thread-Local Storage index while it is still in use. Unspecified bad things may happen if this is done. The caller is responsible for ensuring that TLSFree is not called prematurely.

See also

TLSAlloc

  

VarArgs version of TLSAllocA

TLSGetValue

  

get the task specific value associated with a given Thread-Local Storage index (V51.46)

TLSSetValue

  

set the task specific value associated with a given Thread-Local Storage index (V51.46)

TLSCallDestructors

  

Call Thread-Local Storage index destructors for the given task (V51.46)


Documentation generated on: 2021-07-30