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

TLSGetValue

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

Declaration

Source position: exec.pas line 2347

function TLSGetValue(

  Idx: LongWord

):Pointer;

Arguments

Idx

  

index to return value for.

Function result

value associated with the current task.

Description

Return the task specific value currently associated with the given Thread-Local Storage index. Initial value is NULL if not yet set with TLSSetValue.

Attention

This function is safe to abort mid-execution: This means that there is are global locks, nor does any state change during the execution of this function. Typically you don't need to care about such issues but in some specific instances this information is valueable.

This function is very fast.

See also

TLSAlloc

  

VarArgs version of TLSAllocA

TLSFree

  

Free Thread-Local Storage index

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