|
⇤ ← Revision 1 as of 2011-02-01 22:10:11
Size: 848
Comment: create page - 2/1 changeset 5134
|
Size: 859
Comment: minor change for consistency
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 21: | Line 21: |
| 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 on success, or a negative error code on failure; call [[SDL_GetError]]() for more information. |
DRAFT |
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 |
the atomic variable to set |
v |
the desired value |
Return Value
Returns the previous value of the atomic variable on success, or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
