|
Size: 848
Comment: create page - 2/1 changeset 5134
|
← Revision 7 as of 2015-04-26 18:47:11 ⇥
Size: 723
Comment: Removed space.
|
| 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 atomic variable to set^|| ||'''v'''||^the desired value^|| |
||'''a'''||a pointer to an [[SDL_atomic_t]] variable to be modified|| ||'''v'''||the desired value|| |
| Line 21: | Line 20: |
| Returns the previous value of the atomic variable, or a negative error code on failure; call [[SDL_GetError]]() for more information. | Returns the previous value of the atomic variable. |
| Line 29: | Line 28: |
| ''You can add useful comments here'' | This function also acts as a full memory barrier. |
| Line 33: | Line 32: |
| .[[SDL_AtomicSetPtr]] |
SDL_AtomicSet
Use this function to set an atomic variable to a value.
Contents
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.
