table of contents
- testing 3.2.10+ds-1
- unstable 3.2.10+ds-1
- experimental 3.2.16+ds-1
SDL_MemoryBarrierAcquireFunction(3) | SDL3 FUNCTIONS | SDL_MemoryBarrierAcquireFunction(3) |
NAME¶
SDL_MemoryBarrierAcquireFunction - Insert a memory acquire barrier (function version).
SYNOPSIS¶
#include <SDL3/SDL_atomic.h>
void SDL_MemoryBarrierAcquireFunction(void);
DESCRIPTION¶
Please refer to SDL_MemoryBarrierRelease for details. This is a function version, which might be useful if you need to use this functionality from a scripting language, etc. Also, some of the macro versions call this function behind the scenes, where more heavy lifting can happen inside of SDL. Generally, though, an app written in C/C++/etc should use the macro version, as it will be more efficient.
THREAD SAFETY¶
Obviously this function is safe to use from any thread at any time, but if you find yourself needing this, you are probably dealing with some very sensitive code; be careful!
AVAILABILITY¶
This function is available since SDL 3.2.0.
SEE ALSO¶
SDL 3.2.16 | Simple Directmedia Layer |