XTA: API Reference for C language

xta_transaction_manager.c File Reference
#include "config.h"
#include "lixa_errors.h"
#include "lixa_trace.h"
#include "client_status.h"
#include "xta_transaction_manager.h"
Include dependency graph for xta_transaction_manager.c:

Go to the source code of this file.

Macros

#define LIXA_TRACE_MODULE   LIXA_TRACE_MOD_XTA
 

Functions

xta_transaction_txta_transaction_manager_create_transaction (xta_transaction_manager_t *tm)
 
void xta_transaction_manager_delete (xta_transaction_manager_t *tm)
 
xta_transaction_manager_config_txta_transaction_manager_get_config (void)
 
xta_transaction_manager_txta_transaction_manager_new (void)
 

Macro Definition Documentation

#define LIXA_TRACE_MODULE   LIXA_TRACE_MOD_XTA

Definition at line 40 of file xta_transaction_manager.c.

Function Documentation

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

Parameters
[in,out]tm: transaction manager object
Returns
the pointer to an XTA Transaction 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

Parameters
[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.

Returns
the pointer to the Transaction Manager configuration object

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

Returns
a new transaction manager object or NULL in the event of an error occurred

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.


Copyright © 2009-2019, Christian Ferrari tiian@users.sourceforge.net http://www.tiian.org/