sdlCleanupTls function

void sdlCleanupTls()

Cleanup all TLS data for this thread.

If you are creating your threads outside of SDL and then calling SDL functions, you should call this function before your thread exits, to properly clean up SDL memory.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_CleanupTLS(void)

Implementation

void sdlCleanupTls() {
  final sdlCleanupTlsLookupFunction = libSdl3
      .lookupFunction<Void Function(), void Function()>('SDL_CleanupTLS');
  return sdlCleanupTlsLookupFunction();
}