Zero  0.1.0
Classes | Macros | Variables
lock_core.cpp File Reference
#include "w_defines.h"
#include "sm_base.h"
#include "lock_s.h"
#include "lock_lil.h"
#include "lock_core.h"
#include "lock_raw.h"
#include "lock_compt.h"
#include "sm_options.h"
#include "xct.h"
#include "w_okvl.h"
#include "w_okvl_inl.h"

Classes

struct  RawLockCleanerFunctor
 

Macros

#define LOCK_CORE_C
 
#define SM_SOURCE
 

Variables

bool g_deadlock_use_waitmap_obsolete = true
 
int g_deadlock_dreadlock_interval_ms = 10
 
w_error_codes(* g_check_deadlock_impl )(xct_t *xd, lock_request_t *myreq)
 
bool OKVL_EXPERIMENT = false
 
uint32_t OKVL_INIT_STR_PREFIX_LEN = 0
 
uint32_t OKVL_INIT_STR_UNIQUEFIER_LEN = 0
 
__thread gc_pointer_raw tls_xct_pool_next
 
__thread gc_pointer_raw tls_lock_pool_next
 

Macro Definition Documentation

§ LOCK_CORE_C

#define LOCK_CORE_C

§ SM_SOURCE

#define SM_SOURCE

Variable Documentation

§ g_check_deadlock_impl

w_error_codes(* g_check_deadlock_impl) (xct_t *xd, lock_request_t *myreq)

function pointer for the implementation of arbitrary _check_deadlock impl.

§ g_deadlock_dreadlock_interval_ms

int g_deadlock_dreadlock_interval_ms = 10

How long to sleep between each dreadlock spin?

§ g_deadlock_use_waitmap_obsolete

bool g_deadlock_use_waitmap_obsolete = true

Whether to use the dreadlock sleep-backoff algorithm?

§ OKVL_EXPERIMENT

bool OKVL_EXPERIMENT = false

This is only for OKVL performance experiments. This must be usually turned off as we do not have metadata to automatically determine the following parameters per B-tree.

§ OKVL_INIT_STR_PREFIX_LEN

uint32_t OKVL_INIT_STR_PREFIX_LEN = 0

Global variable to specify the length of "logical" key part in OKVL. 0 to turn it off.

§ OKVL_INIT_STR_UNIQUEFIER_LEN

uint32_t OKVL_INIT_STR_UNIQUEFIER_LEN = 0

Global variable to specify the length of "uniquefier" key part in OKVL. 0 to turn it off.

§ tls_lock_pool_next

__thread gc_pointer_raw tls_lock_pool_next

§ tls_xct_pool_next

__thread gc_pointer_raw tls_xct_pool_next