---
name: "SDL_TLSDestructorCallback"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_TLSDestructorCallback"
---

# SDL\_TLSDestructorCallback(3type)

The callback used to cleanup data passed to SDL\_SetTLS .

## NAME

SDL\_TLSDestructorCallback - The callback used to cleanup data passed to  **SDL\_SetTLS** .

## HEADER FILE

Defined in SDL3/SDL\_thread.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef void (SDLCALL \*SDL\_TLSDestructorCallback)(void \*value);**

## DESCRIPTION

This is called when a thread exits, to allow an app to free any resources.

## FUNCTION PARAMETERS

- *value*

  a pointer previously handed to  **SDL\_SetTLS** .

## AVAILABILITY

This datatype is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_SetTLS**(3)](/SDL_SetTLS/3.md)
