DOKK / manpages / debian 13 / libsdl3-doc / SDL_RETURN_CAPABILITY.3.en
SDL_RETURN_CAPABILITY(3) SDL3 FUNCTIONS SDL_RETURN_CAPABILITY(3)

SDL_RETURN_CAPABILITY - Wrapper around Clang thread safety analysis annotations.

Defined in SDL3/SDL_mutex.h

#include "SDL3/SDL.h"
#define SDL_RETURN_CAPABILITY(x) .BI SDL_THREAD_ANNOTATION_ATTRIBUTE__(lock_returned(x))

Please see https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h

This macro is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer