lrt_tpresume

Transaction Handling Functions

Resumes a global transaction.

int lrt_tpresume( TPTRANID *tranid, long flags );

tranid Global transaction id.
flags Reserved for future use and must be set to 0.

The lrt_tpresume function resumes a global transaction. It is used in conjunction with the lrt_tpsuspend statement.

Return Values

If the function fails, it returns -1 and sets the error code in tperrno.

Parameterization

You cannot use standard parameterization for any arguments in this function.

Example

In the following example, lrt_tpresume resumes the global transaction with id tranid that was previously halted.

Copy code
TPTRANID tranid;
lrt_tpbegin(30, 0);
lrt_tpsuspend(&tranid, 0);
lrt_tpresume(&tranid, 0);
lrt_tpcommit(0);