Wiki Page Content

SDL_AtomicAdd

Use this function to add to an atomic variable.

Syntax

Toggle line numbers
int SDL_AtomicAdd(SDL_atomic_t* a,
                  int           v)

Function Parameters

a

a pointer to an SDL_atomic_t variable to be modified

v

the desired value to add

Return Value

Returns the previous value of the atomic variable.

Code Examples

Toggle line numbers
You can add your code example here

Remarks

This function also acts as a full memory barrier.


CategoryAPI, CategoryAtomic

None: SDL_AtomicAdd (last edited 2015-03-21 20:43:15 by PhilippWiesemann)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit