Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-01-28 20:15:29
Size: 726
Editor: SheenaSmith
Comment: create page - 1/27 changeset 5123
Revision 2 as of 2011-02-01 20:20:56
Size: 772
Editor: SheenaSmith
Comment: update content - add RFs
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
 .[[SDL_AtomicLock]]
 .[[SDL_AtomicUnlock]]

DRAFT

SDL_AtomicTryLock

Use this function to try to lock a spin lock by setting it to a non-zero value.

Syntax

SDL_bool SDL_AtomicTryLock(SDL_SpinLock* lock)

Function Parameters

lock

points to the lock

Return Value

Returns SDL_TRUE if the lock succeeded, SDL_FALSE if the lock is already held.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryAtomic

None: SDL_AtomicTryLock (last edited 2011-02-02 18:20:09 by SheenaSmith)

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