tlds
Transactional Operations for Linked Data Structures
|
#include <boostingskip.h>
Classes | |
struct | Operation |
Public Types | |
enum | ReturnCode { OK = 0, LOCK_FAIL, OP_FAIL } |
Public Member Functions | |
BoostingSkip () | |
~BoostingSkip () | |
void | Init () |
void | Uninit () |
ReturnCode | Insert (uint32_t key) |
ReturnCode | Delete (uint32_t key) |
ReturnCode | Find (uint32_t key) |
void | OnAbort (ReturnCode ret) |
void | OnCommit () |
void | Print () |
Private Types | |
enum | OpType { FIND = 0, INSERT, DELETE } |
typedef std::vector< Operation > | LogType |
Private Member Functions | |
ASSERT_CODE (uint32_t g_count=0;uint32_t g_count_ins=0;uint32_t g_count_del=0;uint32_t g_count_fnd=0;) uint32_t g_count_commit=0 | |
Private Attributes | |
boost_skip * | m_list |
LockKey | m_lock |
uint32_t | g_count_abort = 0 |
uint32_t | g_count_fake_abort = 0 |
Static Private Attributes | |
static __thread LogType * | m_log |
|
private |
|
private |
BoostingSkip::BoostingSkip | ( | ) |
BoostingSkip::~BoostingSkip | ( | ) |
|
privatepure virtual |
BoostingSkip::ReturnCode BoostingSkip::Delete | ( | uint32_t | key | ) |
BoostingSkip::ReturnCode BoostingSkip::Find | ( | uint32_t | key | ) |
void BoostingSkip::Init | ( | ) |
BoostingSkip::ReturnCode BoostingSkip::Insert | ( | uint32_t | key | ) |
void BoostingSkip::OnAbort | ( | ReturnCode | ret | ) |
void BoostingSkip::OnCommit | ( | ) |
void BoostingSkip::Print | ( | ) |
void BoostingSkip::Uninit | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |