Export (0) Print
Expand All
Expand Minimize

FlsCallback 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


VOID WINAPI FlsCallback(
  _In_  PVOID lpFlsData
);

Parameters

lpFlsData [in]

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 | Windows Store apps]

Minimum supported server

Windows Server 2003 [desktop apps | Windows Store apps]

Header

WinBase.h (include Windows.h)

See also

Fibers
FlsAlloc
Process and Thread Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft