SE_instance_get_state_locks |
Returns a list of state locks in use on a specified ArcSDE instance
LONG SE_instance_get_state_locks (const CHAR *server, const CHAR *instance, SE_INSTANCE_STATE_LOCK **lock_list_addr, LONG *lock_count_addr);
server | The server name |
instance | The ArcSDE instance name |
lock_list_addr | Pointer to an array of returned SE_INSTANCE_STATE_LOCK structures |
lock_count_addr | The number of SE_INSTANCE_STATE_LOCK structures returned |
SE_instance_get_state_locks returns an array of SE_INSTANCE_STATE_LOCK structures, one for each lock currently in place on the specified ArcSDE instance on the specified node. The default instance name is esri_sde. The application should free the list when it is done by calling SE_instance_free_state_locks.
The following information is returned in the SE_INSTANCE_STATE_LOCK structure:
typedef struct _SE_InstanceStateLock {
LONG pid;
/* Gsrvr process id that holds this lock. */
LONG state_id; /* State being locked.
*/
SHORT lock_type; /* Shared, exclusive or table.
*/
} SE_INSTANCE_STATE_LOCK;
The lock types are:
SE_STATE_TREE_SHARED_LOCK
SE_STATE_TREE_EXCLUSIVE_LOCK
SE_STATE_SHARED_LOCK
SE_STATE_EXCLUSIVE_LOCK
SE_STATE_SHARED_AUTOLOCK
SE_STATE_EXCLUSIVE_AUTOLOCK
SE_SUCCESS
SE_FAILURE
SE_INSTANCE_NOT_AVAILABLE
SE_INSTANCE_TOO_EARLY
SE_INVALID_POINTER
SE_IOMGR_NOT_AVAILABLE
SE_NET_FAILURE
SE_OUT_OF_CLMEM
SE_OUT_OF_SVMEM
SE_SERVICE_NOT_FOUND