Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2011-02-01 23:19:17
Size: 898
Editor: SheenaSmith
Comment: add RF
Revision 3 as of 2011-02-02 17:29:59
Size: 736
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 17: Line 16:
||'''a'''||^the [[SDL_atomic_t]] structure filled in with the variable^||
||'''v'''||^the desired value to add^||
||'''a'''||a pointer to an [[SDL_atomic_t]] variable to be modified||
||'''v'''||the desired value to add||
Line 21: Line 20:
Returns the previous value of the atomic variable on success, or a negative error code on failure; call [[SDL_GetError]]() for more information. Returns the previous value of the atomic variable.
Line 32: Line 31:
 .[[SDL_AtomicAdd]] ???
 .[[SDL_AtomicIncRef]] ???
 .[[SDL_AtomicDecRef]]
 .[[SDL_AtomicIncRef]]

SDL_AtomicAdd

Use this function to add to an atomic variable.

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