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