![]() |
![]() |
|
|
tx_rollback(3c)
Name
tx_rollback()—Rolls back a global transaction.
Synopsis
#include <tx.h>
int tx_rollback(void)
Description
tx_rollback() is used to roll back the work of the transaction active in the caller's thread of control.
If the transaction_control characteristic (see tx_set_transaction_control(3c)) is TX_UNCHAINED, then when tx_rollback() returns, the caller is no longer in transaction mode. However, if the transaction_control characteristic is TX_CHAINED, then when tx_rollback() returns, the caller remains in transaction mode on behalf of a new transaction (see the Return Value and Errors sections below).
In a multithreaded application, a thread in the TPINVALIDCONTEXT state is not allowed to issue a call to tx_rollback().
Optional Set-up
Return Value
Upon successful completion, tx_rollback() returns TX_OK, a non-negative return value.
Errors
Under the following conditions, tx_rollback() fails and returns one of these negative values:
See Also
tx_begin(3c), tx_set_transaction_control(3c), tx_set_transaction_timeout(3c)
Warnings
Both the X/Open TX interface and the X-Windows system define the type XID. It is not possible to use both X-Windows calls and TX calls in the same file.
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|