SDL_EXCLUDES(3)
π SDL_EXCLUDES π
okay so bestie, welcome to the SDL3 FUNCTIONS manual page for SDL_EXCLUDES β and ngl, this one is a lil macro with major "don't touch my mutex" energy. It's literally a wrapper around Clang thread safety analysis annotations. The way that it just delegates to Clang? Iconic. π
πΈ NAME πΈ
SDL_EXCLUDES β a wrapper around Clang thread safety analysis annotations. no cap, that's the whole vibe. β¨
β¨ SYNOPSIS β¨
#include <SDL3/SDL_mutex.h>
#define SDL_EXCLUDES(x) \
SDL_THREAD_ANNOTATION_ATTRIBUTE__(locks_excluded(x))
π¦ DESCRIPTION π¦
so like, the actual full lore is not here, bestie. The page says please see:
https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h
that's the link. go read it. iykyk. π
π AVAILABILITY π
This macro is available since SDL 3.2.0. so if you're on anything older, it's giving "not invited to the party." π
lowkey reminder: this is just a wrapper, so all the real thread-safety rules live with Clang. don't come for me. π«Ά
xoxo, peace out from the Simple Directmedia Layer besties, running SDL 3.4.18, and this has been SDL_EXCLUDES(3) π β¨πΈ
π¦ 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