|
Classes |
struct | txc_tx_srcloc_s |
Typedefs |
typedef txc_tx_s | txc_tx_t |
typedef txc_txmgr_s | txc_txmgr_t |
typedef void(*) | txc_tx_function_t (void *, int *) |
typedef void(*) | txc_tx_undo_function_t (void *, int *) |
typedef void(*) | txc_tx_commit_function_t (void *, int *) |
typedef txc_tx_srcloc_s | txc_tx_srcloc_t |
Enumerations |
enum | txc_tx_abortreason_t {
TXC_ABORTREASON_TMCONFLICT = 0,
TXC_ABORTREASON_USERABORT = 1,
TXC_ABORTREASON_USERRETRY = 2,
TXC_ABORTREASON_BUSYSENTINEL = 4,
TXC_ABORTREASON_INCONSISTENCY = 8,
TXC_ABORTREASON_BUSYTXLOCK = 16
} |
enum | txc_tx_xactstate_t { TXC_XACTSTATE_NONTRANSACTIONAL = 0,
TXC_XACTSTATE_TRANSACTIONAL_RETRYABLE = 1,
TXC_XACTSTATE_TRANSACTIONAL_IRREVOCABLE = 2
} |
Functions |
int | txc_tx_xact_state_get () |
txc_result_t | txc_txmgr_create (txc_txmgr_t **, txc_buffermgr_t *, txc_sentinelmgr_t *, txc_statsmgr_t *statsmgr) |
txc_result_t | txc_txmgr_destroy (txc_txmgr_t **) |
txc_result_t | txc_tx_create (txc_txmgr_t *, txc_tx_t **) |
txc_result_t | txc_tx_destroy (txc_tx_t **) |
void | txc_tx_abort_transaction (txc_tx_t *, txc_tx_abortreason_t) |
txc_result_t | txc_tx_register_commit_action (txc_tx_t *, txc_tx_commit_function_t, void *, int *, int) |
txc_result_t | txc_tx_register_undo_action (txc_tx_t *, txc_tx_undo_function_t, void *, int *, int) |
txc_tx_t * | txc_tx_get_txd () |
unsigned int | txc_tx_get_tid (txc_tx_t *txd) |
unsigned int | txc_tx_get_tid_pthread (txc_tx_t *txd) |
txc_tx_xactstate_t | txc_tx_get_xactstate (txc_tx_t *txd) |
unsigned int | txc_tx_get_forced_retries (txc_tx_t *txd) |
void | txc_tx_pre_begin (txc_tx_t *txd, const char *srcloc_str, txc_tx_srcloc_t *srcloc) |
void | txc_tx_post_begin (txc_tx_t *txd) |
void | txc_txmgr_print (txc_txmgr_t *) |
txc_result_t | txc_tx_exists (txc_txmgr_t *, txc_tx_t *) |
Variables |
txc_txmgr_t * | txc_g_txmgr |
__thread txc_tx_t * | txc_l_txd |