Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2015-03-01 23:54:16
Size: 760
Editor: Yttrill
Comment: Copy specs from category header.
Revision 6 as of 2015-03-21 20:44:08
Size: 724
Comment: Moved remark into Remarks section.
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
Use this function to set an atomic variable to a value. This function also acts as a full memory barrier. Use this function to set an atomic variable to a value.
Line 28: Line 28:
''You can add useful comments here''  This function also acts as a full memory barrier.

SDL_AtomicSet

Use this function to set an atomic variable to a value.

Syntax

int SDL_AtomicSet(SDL_atomic_t* a,
                  int           v)

Function Parameters

a

a pointer to an SDL_atomic_t variable to be modified

v

the desired value

Return Value

Returns the previous value of the atomic variable.

Code Examples

You can add your code example here

Remarks

  • This function also acts as a full memory barrier.


CategoryAPI, CategoryAtomic

None: SDL_AtomicSet (last edited 2015-03-21 20:44:08 by PhilippWiesemann)

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