PFLS_CALLBACK_FUNCTION callback function

An application-defined function. If the FLS slot is in use, FlsCallback is called on fiber deletion, thread exit, and when an FLS index is freed. Specify this function when calling the FlsAlloc function. The PFLS_CALLBACK_FUNCTION type defines a pointer to this callback function. FlsCallback is a placeholder for the application-defined function name.

Syntax

PFLS_CALLBACK_FUNCTION PflsCallbackFunction;

void PflsCallbackFunction(
  IN PVOID lpFlsData
)
{...}

Parameters

lpFlsData

The value stored in the FLS slot for the calling fiber.

Return Value

This function does not return a value.

Remarks

Each FLS index has an associated FlsCallback function. The callback function can be used for any purpose, but it is intended to be used primarily to free memory.

Requirements

   
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header winnt.h

See Also

Fibers

FlsAlloc

Process and Thread Functions