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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms