Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2011-02-01 22:19:02
Size: 1000
Editor: SheenaSmith
Comment: minor change for consistency
Revision 6 as of 2011-02-02 17:33:26
Size: 863
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 18: Line 17:
||'''a'''||^the [[SDL_atomic_t]] structure filled in with the variable^|| ||'''a'''||a pointer to an [[SDL_atomic_t]] variable to be modified||
Line 33: Line 32:
/!\ If you don't know what this function is for, you shouldn't use it!

SDL_AtomicCAS

Use this function to set an atomic variable to a new value if it is currently an old value.

Syntax

SDL_bool SDL_AtomicCAS(SDL_atomic_t* a,
                       int           oldval,
                       int           newval)

Function Parameters

a

a pointer to an SDL_atomic_t variable to be modified

oldval

the old value

newval

the new value

Return Value

Returns SDL_TRUE if the atomic variable was set, SDL_FALSE otherwise.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryAtomic

None: SDL_AtomicCAS (last edited 2016-05-11 20:50:02 by PhilippWiesemann)

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