#include "config.h"
#include "lixa_errors.h"
#include "lixa_trace.h"
#include "client_status.h"
#include "xta_transaction_manager.h"
Go to the source code of this file.
Macros | |
#define | LIXA_TRACE_MODULE LIXA_TRACE_MOD_XTA |
#define LIXA_TRACE_MODULE LIXA_TRACE_MOD_XTA |
Definition at line 40 of file xta_transaction_manager.c.
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.