Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2011-02-01 23:52:52
Size: 984
Editor: SheenaSmith
Comment: add RF
Revision 3 as of 2011-02-02 18:27:08
Size: 704
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'''||^a pointer to a pointer to an atomic variable^||
||'''v'''||^a pointer to the desired value^||
||'''a'''||a pointer to a pointer||
||'''v'''||the desired pointer value||
Line 21: Line 20:
Returns the previous value of the pointer. <<Color2(green,This doesn't seem like the right RV for a void*.)>>

Returns ^a pointer to the previous value^ on success.

<<Color2(green,What happens on failure?)>>
Returns the previous value of the pointer.
Line 38: Line 33:
 .[[SDL_AtomicSet]]

SDL_AtomicSetPtr

Use this function to set a pointer to a value atomically.

Syntax

void* SDL_AtomicSetPtr(void** a,
                       void*  v)

Function Parameters

a

a pointer to a pointer

v

the desired pointer value

Return Value

Returns the previous value of the pointer.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryAtomic

None: SDL_AtomicSetPtr (last edited 2011-02-02 18:27:08 by SheenaSmith)

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