Table of Contents
#include <tx.h>
int tx_set_transaction_timeout(TRANSACTION_TIMEOUT timeout);
For XATMI client link with -latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm
For XATMI server link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm
Function set timeout value for new transactions. The value is used when next tx_begin(3) is issued. The value does not affect any global transaction in progress. If value of timeout is set to 0 then maximum timeout value is used for transaction. Units for timeout is seconds.
On success, tx_set_transaction_timeout() return TX_OK; on error, error code is returned
TX_EINVAL Invalid value of timeout parameter, less than 0.
TX_PROTOCOL_ERROR Transaction manager is not open by tx_open(3)
Report bugs to support@mavimax.com
tx_open(3) tx_close(3) tx_begin(3) tx_commit(3) tx_rollback(3) tx_info(3) tx_set_transaction_control(3) tx_set_commit_return(3)