SDL_RELEASE_SHARED(3)
β¨ NAME β¨
SDL_RELEASE_SHARED β a lil wrapper around Clang thread safety analysis annotations π
π SYNOPSIS π
#include <SDL3/SDL_mutex.h>
#define SDL_RELEASE_SHARED(x) \
SDL_THREAD_ANNOTATION_ATTRIBUTE__(release_shared_capability(x))
π¦ DESCRIPTION π¦
okay so bestie, this macro is literally just a wrapper around the Clang thread safety analysis annotations β that's it, that's the whole job π«Ά
and the actual tea? the fine print lives over here, so go read it:
https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#mutex-h
no cap, that link is the whole description. the docs said "go read the docs" and honestly? iconic. π
π AVAILABILITY π
- this macro has been available since SDL 3.2.0 β
heads up bestie β this page lives in the SDL3 FUNCTIONS section of the manual, so if you were out here grepping for it, that's where it's at π₯
mwah π that's the whole page β sent to you with love from the Simple Directmedia Layer girlies, straight out of SDL 3.4.18. go slay your thread safety annotations, 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