SDL_REQUIRES_SHARED(3)
π SDL_REQUIRES_SHARED(3) π
ok so bestie, welcome to the SDL3 FUNCTIONS corner of the man pages β today we're talking about SDL_REQUIRES_SHARED, and it's giving compiler-whisperer energy, no cap π§
β¨ NAME β¨
SDL_REQUIRES_SHARED β a lil wrapper around Clang thread safety analysis annotations π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_mutex.h>
#define SDL_REQUIRES_SHARED(x) \
SDL_THREAD_ANNOTATION_ATTRIBUTE__(requires_shared_capability(x))
β¨ DESCRIPTION β¨
bestie, this one is short and I'm obsessed with how low-effort it is on my end. The actual lore lives here:
https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h
like, go read that, it's the main character of this whole thing π
β¨ AVAILABILITY β¨
This macro has been around since SDL 3.2.0 β so if you're on anything older, she's not there yet, sorry bestie π
Simple Directmedia Layer π¦ SDL 3.4.18 π¦ and that's the whole vibe, mwah π go forth and annotate your mutexes, queen π
π¦ 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