NPA_MutexTryLock
Tries to obtain a mutex lock without blocking to allow multiprocessor (MP) safe operations on shared data.
LONG NPA_MutexTryLock (
LONG mutexHandle
);
The following table lists return values and descriptions.
NWPA_MutexTryLock tries to obtain a mutually exclusive lock (only one thread can obtain the lock at any given time) without blocking to manipulate shared data safely in a multiprocessor environment.
It immediately returns a busy status if it cannot obtain the lock without blocking.
It is typically used to avoid dead locks when a predetermined lock ordering must be violated while acquiring multiple mutexes.