src/core/tx.c File Reference

Generic transaction manager implementation. More...

#include <sys/time.h>
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
#include <assert.h>
#include <sched.h>
#include <misc/debug.h>
#include <misc/pool.h>
#include <misc/malloc.h>
#include <misc/mutex.h>
#include <core/config.h>
#include <core/sentinel.h>
#include <core/buffer.h>
#include <core/koa.h>
#include <core/fm.h>
#include <core/tx.h>
#include <core/txdesc.h>
#include <tm/itm.h>
#include <tm/logtm.h>

Go to the source code of this file.

Classes

struct  txc_tx_action_list_entry_s
struct  txc_tx_action_list_s
struct  txc_txmgr_s

Functions

txc_result_t txc_txmgr_create (txc_txmgr_t **txmgrp, txc_buffermgr_t *buffermgr, txc_sentinelmgr_t *sentinelmgr, txc_statsmgr_t *statsmgr)
txc_result_t txc_txmgr_destroy (txc_txmgr_t **txmgrp)
txc_result_t txc_tx_create (txc_txmgr_t *txmgr, txc_tx_t **txdp)
txc_result_t txc_tx_destroy (txc_tx_t **txdp)
void txc_tx_abort_transaction (txc_tx_t *txd, txc_tx_abortreason_t abort_reason)
txc_result_t txc_tx_register_commit_action (txc_tx_t *txd, txc_tx_commit_function_t function, void *args, int *error_result, int order)
txc_result_t txc_tx_register_undo_action (txc_tx_t *txd, txc_tx_undo_function_t function, void *args, int *error_result, int order)
txc_tx_ttxc_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 *txmgr)
txc_result_t txc_tx_exists (txc_txmgr_t *txmgr, txc_tx_t *txd)

Variables

__thread txc_tx_ttxc_l_txd
txc_txmgr_ttxc_g_txmgr


Detailed Description

Generic transaction manager implementation.

Abstracts the underlying transactional memory system and exposes a generic transactional memory interface to the rest of the library.

Definition in file tx.c.


Generated on Wed Dec 9 20:32:40 2009 for xCalls by  doxygen 1.4.7