Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2011-02-02 17:29:59
Size: 736
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Revision 4 as of 2015-03-02 00:39:24
Size: 786
Editor: Yttrill
Comment: Copy specs from category header.
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
Use this function to add to an atomic variable. Use this function to add to an atomic variable. This function also acts as a full memory barrier.

SDL_AtomicAdd

Use this function to add to an atomic variable. This function also acts as a full memory barrier.

Syntax

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

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryAtomic

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

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