Attempted to acquire a distributed lock but is now obsolete.
#include <ncssdk.h> NCS_RETURN NCS_TryLock
(
NCS_HANDLE Handle,
NCS_KEY Key,
UINT32 KeyLen
UINT32 *Holder);
(IN) Specifies the application’s handle.
(IN) Specifies the lock key (maximum 32 bytes).
(IN) Specifies the lock key length.
(OUT) Points to the bitmask of the node that currently holds the lock.
The difference between NCS_TryLock and NCS_Lock (Obsolete 10/5/2005) is that NCS_Lock will block until it can get the log. NCS_TryLock, on the other hand, provides a polling mechanism by returning an error code indicating it can’t lock an application.