|
tlds
Transactional Operations for Linked Data Structures
|
#include <boostinglist.h>
Classes | |
| struct | Operation |
Public Types | |
| enum | ReturnCode { OK = 0, LOCK_FAIL, OP_FAIL } |
Public Member Functions | |
| ~BoostingList () | |
| 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 | |
| LockfreeList | 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 |
| BoostingList::~BoostingList | ( | ) |
|
privatepure virtual |
| BoostingList::ReturnCode BoostingList::Delete | ( | uint32_t | key | ) |
| BoostingList::ReturnCode BoostingList::Find | ( | uint32_t | key | ) |
| void BoostingList::Init | ( | ) |
| BoostingList::ReturnCode BoostingList::Insert | ( | uint32_t | key | ) |
| void BoostingList::OnAbort | ( | ReturnCode | ret | ) |
| void BoostingList::OnCommit | ( | ) |
| void BoostingList::Print | ( | ) |
| void BoostingList::Uninit | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |