OSTryAcquireSpinLock

Syntax

#include <cafe/os.h>

BOOL OSTryAcquireSpinLock(OSSpinLock* spinlock);

Parameters

spinlock Pointer to the OSSpinlock to attempt to acquire.

Return Values

Returns TRUE if the OSSpinlock was acquired, or FALSE if the OSSpinlock was previously acquired by a different thread or task.

Description

Attempts to acquire an OSSpinLock.

A thread may acquire a spinlock recursively.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

OSInitSpinLock
OSAcquireSpinLock
OSReleaseSpinLock
OSTryAcquireSpinLockWithTimeout

Revision History

2013/05/08 Automated cleanup pass.
2012/08/01 Cleanup Pass.
2010/08/23 Initial version.


CONFIDENTIAL