SDL_TRY_ACQUIRE_SHARED(3)
okay so bestie, you opened SDL_TRY_ACQUIRE_SHARED(3) from the SDL3 FUNCTIONS section, and it's literally a tiny macro moment. π
β¨ NAME β¨
SDL_TRY_ACQUIRE_SHARED β it's a wrapper around Clang thread safety analysis annotations. That's it. That's the whole job. No cap.
π¦ SYNOPSIS π¦
#include <SDL3/SDL_mutex.h>
#define SDL_TRY_ACQUIRE_SHARED(x, y) \
SDL_THREAD_ANNOTATION_ATTRIBUTE__(try_acquire_shared_capability(x, y))
πΈ DESCRIPTION πΈ
Bestie, the actual explanation is over here: https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h. Please see that. It's the Clang ThreadSafetyAnalysis docs, mutex-h section. Go get your lore. π
π AVAILABILITY π
This macro is available since SDL 3.2.0 β so if your SDL is 3.2.0 or newer, you're good to go. β¨
okay bye bestie π«Ά this page came from Simple Directmedia Layer, version SDL 3.4.18, and the footer tag is SDL_TRY_ACQUIRE_SHARED(3). No date was in the footer, so I'm not inventing one ππ.
π¦ 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