Zero  0.1.0
Classes | Typedefs | Enumerations | Functions
latch.h File Reference
#include "w_defines.h"
#include "smthread.h"
#include "latches.h"
#include <list>
#include <thread>
#include <iosfwd>

Go to the source code of this file.

Classes

class  latch_holder_t
 Indicates a latch is held by this thread. More...
 
class  latch_t
 A short-term hold (exclusive or shared) on a page. More...
 

Typedefs

typedef int64_t q_ticket_t
 type of a Q mode ticket; exact type and location of definition TBD More...
 

Enumerations

enum  latch_mode_t { LATCH_NL = 0, LATCH_SH = 2, LATCH_EX = 3 }
 

Functions

ostream & operator<< (ostream &, const latch_t &)
 
void print_my_latches ()
 
void print_all_latches ()
 
void print_latch (const latch_t *l)
 

Typedef Documentation

§ q_ticket_t

typedef int64_t q_ticket_t

type of a Q mode ticket; exact type and location of definition TBD

Enumeration Type Documentation

§ latch_mode_t

Increasing values indicate increasing degrees of privilege; that is lock mode l, l>k, allows at least as many operations as mode k. I.e., EX > SH > Q > NL.

If you alter this, also change the corresponding interface and definition of latch_mode_str.

Enumerator
LATCH_NL 
LATCH_SH 
LATCH_EX 

Function Documentation

§ operator<<()

ostream& operator<< ( ostream &  ,
const latch_t  
)

§ print_all_latches()

void print_all_latches ( )

§ print_latch()

void print_latch ( const latch_t l)

§ print_my_latches()

void print_my_latches ( )