Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2010-09-13 06:11:54
Size: 1069
Editor: SheenaSmith
Comment: minor change
Revision 5 as of 2010-10-12 16:35:45
Size: 1163
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
||'''lock'''||,,points to the lock,, ^a pointer to the desired spin lock^||
<<Color2(green,Does the function change the setting of the lock struct to non-0 automatically when it is called? Unlock changes it back to 0?)>>
||'''lock'''||,,points to the lock,, ^the desired SDL_!SpinLock to lock^||

<<Color2(green,Should SDL_!SpinLock be changed to spin lock because it's a typedef with no page? Does this function change the setting of a lock struct (typedef?) to non-0 automatically when it is called? Unlock changes it back to 0?)>>

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 the desired SDL_!SpinLock 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