NPA_SpinTryLock
Tries to acquire a spin lock without spin waiting to allow multiprocessor (MP) safe operations on shared data.
LONG NPA_SpinTryLock (
LONG *lockStatus
);
The following table lists return values and descriptions.
NPA_SpinTryLock must be initialized by calling NPA_SpinLockInit before it is called.
It cannot be called recursively.
A TryLock can be used to avoid deadlocks.
If a spin lock is used by both process time and interrupt time code, the process time code should use NPA_SpinTryLockDisable to avoid deadlocks with the interrupt time code.