OSInitSpinLock

Syntax

#include <cafe/os.h>

void OSInitSpinLock(OSSpinLock* spinlock);

Parameters

spinlock Pointer to the OSSpinLock to initialize.

Return Values

None.

Description

Initializes an OSSpinLock for use. After returning, the OSSpinLock is capable of being used by OS Synchronization functions.

Do Not Call From

Multiple threads This function is not thread-safe.

See Also

OSAcquireSpinLock
OSTryAcquireSpinLock
OSTryAcquireSpinLockWithTimeout
OSReleaseSpinLock

Revision History

2015/06/15 Added OS Sync link.
2013/05/08 Automated cleanup pass.
2012/07/31 Cleanup Pass.
2010/08/23 Initial version.


CONFIDENTIAL