ABIGetLockPairBetweenSessions
ABIGetLockPairBetweenSessions#
Syntax#
int ABIGetLockPairBetweenSessions (
ABILockPair **aHandle );
Argument#
Data Type | Argument | In/Output | Description |
---|---|---|---|
ABILockPair ** | aHandle | Output | The pointer which retrieves the memory address of the structure array that stores the result set |
Return Values#
If successful, returns the number of rows in the result set that aHandle points to; otherwise, returns an error code.
Description#
This function selects the session that is holding a lock and the session that is waiting to acquire that lock. If this function executes successfully, the aHandle pointer (a pointer of the ABILockPair type that points to an array that stores the result set) is returned.
Example#
Please refer to sample_5.c for an application related to this function.
ABILockPair *sLockPair;
int sRowCount;
sRowCount = ABIGetLockPairBetweenSessions( &sLockPair );