SDL_PT_GUARDED_BY(3)
π SDL_PT_GUARDED_BY π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where today's main character is SDL_PT_GUARDED_BY β a lil wrapper around Clang's thread safety analysis annotations. yes, we're being responsible about concurrency, and yes, it's giving iconic. π§΅β¨
β¨ NAME β¨
SDL_PT_GUARDED_BY β wrapper around Clang thread safety analysis annotations.
π SYNOPSIS π
#include <SDL3/SDL_mutex.h>
#define SDL_PT_GUARDED_BY(x) \
SDL_THREAD_ANNOTATION_ATTRIBUTE__(pt_guarded_by(x))
like, that's the whole thing. a macro. a tiny lil macro with big protect-your-data energy. π
π¦ DESCRIPTION π¦
bestie, this is a wrapper around Clang's thread safety analysis annotations. for the full lore, the actual details, and all the juicy context, please see https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h β that's the canonical spot, no cap. π
πΈ AVAILABILITY πΈ
this macro has been available since SDL 3.2.0. so if you're on something older... bestie, we need to talk. π
lowkey reminder: the description literally just points you at the Clang docs, so go read them if you want the deep lore. i'm just the messenger with good vibes. π«Ά
and that's the vibe check, done and dusted. this page came to you from Simple Directmedia Layer, version SDL 3.4.18 β mwah, slay, 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