Go to the source code of this file.
Data Structures | |
struct | xta_transaction_manager_s |
Typedefs | |
typedef void | xta_transaction_manager_config_t |
typedef struct xta_transaction_manager_s | xta_transaction_manager_t |
typedef void xta_transaction_manager_config_t |
This typedef are necessary to avoid the inclusion of LIXA internals that are unnecessary for the XTA interface, but necessary for XTA implementation. The real type is client_config_coll_t, by XTA is used only as a pointer
Definition at line 36 of file xta_transaction_manager.h.
typedef struct xta_transaction_manager_s xta_transaction_manager_t |
XTA Transaction Manager data type
xta_transaction_t* xta_transaction_manager_create_transaction | ( | xta_transaction_manager_t * | tm | ) |
Create a new XA Transaction object, associate it with the current process/thread and returns it to the caller. In the event that the caller thread has already created an XA Transaction, the previously created XA Transaction object is returned
[in,out] | tm | : transaction manager object |
Definition at line 142 of file xta_transaction_manager.c.
References LIXA_RC_G_HASH_TABLE_NEW_ERROR, LIXA_RC_INTERNAL_ERROR, LIXA_RC_NON_DISPOSABLE_TX, LIXA_RC_NULL_OBJECT, LIXA_RC_OK, xta_transaction_manager_s::mutex, xta_transaction_manager_s::transactions, xta_transaction_delete(), xta_transaction_get_multiple_branches(), xta_transaction_new(), and xta_transaction_safe_delete().
void xta_transaction_manager_delete | ( | xta_transaction_manager_t * | tm | ) |
Delete a Transaction Manager object
[in] | tm | : transaction manager to delete |
Definition at line 85 of file xta_transaction_manager.c.
References LIXA_RC_INTERNAL_ERROR, LIXA_RC_OK, xta_transaction_manager_s::mutex, and xta_transaction_manager_s::transactions.
xta_transaction_manager_config_t* xta_transaction_manager_get_config | ( | void | ) |
Get the legacy LIXA object that contains the static global configurations for all the statically defined Resource Managers. This method must be intended as STATIC because it does not access the object state.
Definition at line 128 of file xta_transaction_manager.c.
xta_transaction_manager_t* xta_transaction_manager_new | ( | void | ) |
Create a new Transaction Manager object
Definition at line 44 of file xta_transaction_manager.c.
References LIXA_RC_G_TRY_MALLOC_ERROR, LIXA_RC_INTERNAL_ERROR, and LIXA_RC_OK.