Zero  0.1.0
Classes | Enumerations | Variables
lock_lil.h File Reference
#include "w_defines.h"
#include <cstring>
#include "w_rc.h"
#include "latches.h"
#include "stnode_page.h"
#include "vol.h"

Go to the source code of this file.

Classes

class  lil_global_table_base
 LIL global lock table to protect Volume/Store from concurrent accesses. More...
 
class  lil_global_store_table
 
class  lil_global_vol_table
 
class  lil_global_table
 
class  lil_private_store_table
 LIL private lock table to remember Store locks taken by current xct. More...
 
class  lil_private_vol_table
 LIL private lock table to remember Volume locks and Stores in it. More...
 
class  lil_private_table
 LIL private lock table to remember all locks in xct. More...
 

Enumerations

enum  lil_lock_modes_t {
  LIL_IS = 0, LIL_IX = 1, LIL_S = 2, LIL_X = 3,
  LIL_MODES = 4
}
 

Variables

const uint16_t MAX_VOL_GLOBAL = 1
 
const uint16_t MAX_VOL_PER_XCT = 4
 
const uint16_t MAX_STORE_PER_VOL_XCT = 16
 

Enumeration Type Documentation

§ lil_lock_modes_t

Enumerator
LIL_IS 
LIL_IX 
LIL_S 
LIL_X 
LIL_MODES 

Variable Documentation

§ MAX_STORE_PER_VOL_XCT

const uint16_t MAX_STORE_PER_VOL_XCT = 16

max number of stores per volume one transaction can access at a time.

§ MAX_VOL_GLOBAL

const uint16_t MAX_VOL_GLOBAL = 1

max number of volumes overall.

§ MAX_VOL_PER_XCT

const uint16_t MAX_VOL_PER_XCT = 4

max number of volumes one transaction can access at a time.