---
name: "SDL_TLSID"
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_TLSID"
---

# SDL\_TLSID(3type)

Thread local storage ID.

## NAME

SDL\_TLSID - Thread local storage ID.

## HEADER FILE

Defined in SDL3/SDL\_thread.h

## SYNOPSIS

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

**typedef SDL\_AtomicInt SDL\_TLSID;**

## DESCRIPTION

0 is the invalid ID. An app can create these and then set data for these IDs that is unique to each thread.

## AVAILABILITY

This datatype is available since SDL 3.2.0.

## SEE ALSO

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