MPTryAcquireSpinLock

Syntax

#include <cafe/mp.h>

inline BOOL MPTryAcquireSpinLock(MPSpinLock* spinlock);

Parameters

spinlock MPSpinLock to attempt to acquire.

Return Values

TRUE if the MPSpinLock was acquired. FALSE if the MPSpinLock was previously acquired by a different thread or task.

Description

MPTryAcquireSpinLock attempts to acquire a MPSpinLock.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MPAcquireSpinLock
MPInitSpinLock
MPReleaseSpinLock

Revision History

2013/05/08 Automated cleanup pass.
2010/08/23 Initial version.


CONFIDENTIAL