SDL_ACQUIRE_SHARED(3)
β¨ SDL_ACQUIRE_SHARED β¨
okay bestie, gather round, because we're talking about SDL_ACQUIRE_SHARED from the SDL3 FUNCTIONS lineup π
πΈ NAME πΈ
SDL_ACQUIRE_SHARED β it's a lil wrapper around Clang thread safety analysis annotations π§ no cap, that's literally the whole job.
π SYNOPSIS π
#include <SDL3/SDL_mutex.h>
#define SDL_ACQUIRE_SHARED(x) \
SDL_THREAD_ANNOTATION_ATTRIBUTE__(acquire_shared_capability(x))
likeβ¦ look at her. she's a macro. she's serving. π
π¦ DESCRIPTION π¦
bestie, the actual lore lives here, go read it:
https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h
that's it, that's the description, the Clang girlies documented it and SDL is respectfully pointing you there π
π AVAILABILITY π
this macro has been around since SDL 3.2.0 β so if you're on something olderβ¦ it's giving β¨nothingβ¨, she simply wasn't born yet π
fr fr, remember: this is a macro wrapper, so the thread safety analysis only hits different if your compiler (hi Clang π) actually does that analysis. periodt.
Simple Directmedia Layer Β· version SDL 3.4.18 Β· mwah, thanks for reading, stay iconic, SDL_ACQUIRE_SHARED(3) out π«Άπ
π¦ 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