SDL_ACQUIRE(3)

✨ SDL_ACQUIRE(3) ✨

okay bestie, welcome to the SDL3 FUNCTIONS manual, and today we're decoding SDL_ACQUIRE πŸ’… it's giving "wrapper around Clang thread safety analysis annotations" and honestly? iconic.


πŸ’– NAME πŸ’–

  • SDL_ACQUIRE β€” a whole wrapper around Clang thread safety analysis annotations. no cap, that's literally it.

πŸŽ€ SYNOPSIS πŸŽ€

like, here's the vibe:

#include <SDL3/SDL_mutex.h>

#define SDL_ACQUIRE(x) \
  SDL_THREAD_ANNOTATION_ATTRIBUTE__(acquire_capability(x))

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, if you want the full lore, please see https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h β€” it's all there, fr fr.


🌸 AVAILABILITY 🌸

this macro has been available since SDL 3.2.0, so it's not a newborn but it's still cute.


and that's the whole page! this masterpiece comes to you from Simple Directmedia Layer, version SDL 3.4.18, and it's called SDL_ACQUIRE(3). mwah πŸ’‹ stay slaying, bestie 🫢✨

πŸ“¦ where this page comes from