tid_t Class Reference
[Identifiers]

Collaboration diagram for tid_t:

Collaboration graph
[legend]
List of all members.

Detailed Description

Transaction ID.

Transaction IDs are 64-bit quantities. They can be constructed of and used as a pair of two 32-bit value, the high and low parts, or they can be constructed from a single 64-bit value.

Note:
The two-part nature comes from the days before 64-bit architectures, and it's retained for the purpose of printing transaction ids. They are output in the form "hi.low", which is more readable than printing as a 64-bit value. In no other way need we maintain high and low parts.
Examples:

log_exceed.cpp.

Definition at line 82 of file tid_t.h.

Public Types

typedef w_base_t::uint8_t datum_t
enum  

Public Member Functions

 tid_t ()
 tid_t (uint4_t l, uint4_t h)
 tid_t (datum_t x)
uint4_t get_hi () const
uint4_t get_lo () const
tid_toperator= (const tid_t &t)
bool invalid () const
datum_t atomic_incr ()
tid_tatomic_assign_max (const tid_t &tid)
tid_tatomic_assign_min (const tid_t &tid)
bool operator== (const tid_t &tid) const
bool operator!= (const tid_t &tid) const
bool operator< (const tid_t &tid) const
bool operator<= (const tid_t &tid) const
bool operator> (const tid_t &tid) const
bool operator>= (const tid_t &tid) const

Static Public Attributes

static const tid_t Max
static const tid_t null


The documentation for this class was generated from the following files:
Generated on Wed Jul 7 17:22:43 2010 for Shore Storage Manager by  doxygen 1.4.7