TsctlSystemLockHolderInfoDesc

From embeddedTS Manuals

This function returns an Array of LockHolderInfo structures, one element for each lock currently held.

The structures are filled in such that the nth element will contain information about the nth lock. The pid field contains the process id (on the server) servicing the connection that holds the lock. The count field contains the number of times the given process has acquired the lock. If this value is zero, then the value of the pid field should be ignored, as the lock is not held.

This function is not useful outside the context of a server, as stand-alone applications do not typically implement the support necessary.

typedef struct LockHolderInfo {
  int pid;
  int count;
} LockHolderInfo;