SDL_ACQUIRED_AFTER(3)
π SDL_ACQUIRED_AFTER(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, this one's a lil macro called SDL_ACQUIRED_AFTER and she's here to help your compiler be a lil smarter about threads π§΅β¨
β¨ NAME β¨
SDL_ACQUIRED_AFTER β it's a wrapper around Clang thread safety analysis annotations. that's the whole vibe. no cap. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_mutex.h>
#define SDL_ACQUIRED_AFTER(x) \
SDL_THREAD_ANNOTATION_ATTRIBUTE__(acquired_after(x))
like, that's literally it. one include, one define, zero drama π
β¨ DESCRIPTION β¨
so basically⦠please see the Clang docs, bestie, they're the main character here:
https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h
that's the source of truth, iykyk ππ¦
β¨ AVAILABILITY β¨
this macro is available since SDL 3.2.0. so if you're on anything older, she's not there yet, sorry babe π
that's the page!! ty for reading my lil manual moment π«Ά this one lives in the Simple Directmedia Layer collection, tagged SDL 3.4.18, and it's filed under SDL_ACQUIRED_AFTER(3) in the SDL3 FUNCTIONS set. mwah, periodt ππ
π¦ 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