![]() |
![]() |
|
|
tx_set_commit_return(3c)
Name
tx_set_commit_return()—Sets the commit_return characteristic.
Synopsis
#include <tx.h>
int tx_set_commit_return(COMMIT_RETURN when_return)
Description
tx_set_commit_return() sets the commit_return characteristic to the value specified in when_return. This characteristic affects the way tx_commit() behaves with respect to returning control to its caller. tx_set_commit_return() may be called regardless of whether its caller is in transaction mode. This setting remains in effect until changed by a subsequent call to tx_set_commit_return().
The initial setting for this characteristic is TX_COMMIT_COMPLETED.
The following are the valid settings for when_return:
In a multithreaded application, a thread in the TPINVALIDCONTEXT state is not allowed to issue a call to tx_set_commit_return().
Return Value
Upon successful completion, tx_set_commit_return() returns TX_OK, a non-negative return value.
Errors
Under the following conditions, tx_set_commit_return() does not change the setting of the commit_return characteristic and returns one of these negative values:
See Also
tx_commit(3c), tx_info(3c), tx_open(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.
|