Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-08-26 05:32:23
Size: 718
Editor: SheenaSmith
Comment: minor change
Revision 3 as of 2010-09-13 05:56:49
Size: 1104
Editor: SheenaSmith
Comment: update content
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
Use this function to lock a spin lock by setting it to a ,,none zero,, ^non-0 / non-zero^ value. Use this function to lock a spin lock ,,by setting it to a none zero ^non-0 / non-zero^ value,,.
Line 16: Line 16:
||'''lock'''||points to the lock|| ||'''lock'''||,,points to the lock,, ^a pointer to the desired spin lock; non-zero to lock^||
<<Color2(green,If '''lock''' is for the address of the lock to use, where do you set it to non-0? It seems like there should be another param or something...?)>>
Line 26: Line 27:
<<Color2(green,Would the following site be a relevant link here or perhaps in a more detailed section on this topic?)>>
http://en.wikipedia.org/wiki/Spin_lock

DRAFT

SDL_AtomicLock

Use this function to lock a spin lock by setting it to a none zero ^non-0 / non-zero^ value.

Syntax

void SDL_AtomicLock(SDL_SpinLock* lock)

Function Parameters

lock

points to the lock a pointer to the desired spin lock; non-zero to lock

green

Code Examples

You can add your code example here

Remarks

The spin lock functions and type are required and can not be emulated because they are used in the emulation code.

green

http://en.wikipedia.org/wiki/Spin_lock


CategoryAPI, CategoryAtomic

None: SDL_AtomicLock (last edited 2011-02-02 18:18:28 by SheenaSmith)

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