MySQL 8.4.2
Source Code Documentation
LatchMeta< Counter > Class Template Reference

Latch meta data. More...

#include <sync0types.h>

Public Types

typedef Counter CounterType
 
typedef mysql_pfs_key_t pfs_key_t
 

Public Member Functions

 LatchMeta ()
 Constructor. More...
 
 ~LatchMeta ()=default
 Destructor. More...
 
 LatchMeta (latch_id_t id, const char *name, latch_level_t level, const char *level_name, pfs_key_t key)
 Constructor. More...
 
bool operator< (const LatchMeta &rhs) const
 
latch_id_t get_id () const
 
const char * get_name () const
 
latch_level_t get_level () const
 
const char * get_level_name () const
 
pfs_key_t get_pfs_key () const
 
Counter * get_counter ()
 

Private Attributes

latch_id_t m_id
 Latch id. More...
 
const char * m_name
 Latch name. More...
 
latch_level_t m_level
 Latch level in the ordering. More...
 
const char * m_level_name
 Latch level text representation. More...
 
pfs_key_t m_pfs_key
 PFS key. More...
 
Counter m_counter
 For gathering latch statistics. More...
 

Detailed Description

template<typename Counter = LatchCounter>
class LatchMeta< Counter >

Latch meta data.

Member Typedef Documentation

◆ CounterType

template<typename Counter = LatchCounter>
typedef Counter LatchMeta< Counter >::CounterType

◆ pfs_key_t

template<typename Counter = LatchCounter>
typedef mysql_pfs_key_t LatchMeta< Counter >::pfs_key_t

Constructor & Destructor Documentation

◆ LatchMeta() [1/2]

template<typename Counter = LatchCounter>
LatchMeta< Counter >::LatchMeta ( )
inline

Constructor.

◆ ~LatchMeta()

template<typename Counter = LatchCounter>
LatchMeta< Counter >::~LatchMeta ( )
default

Destructor.

◆ LatchMeta() [2/2]

template<typename Counter = LatchCounter>
LatchMeta< Counter >::LatchMeta ( latch_id_t  id,
const char *  name,
latch_level_t  level,
const char *  level_name,
pfs_key_t  key 
)
inline

Constructor.

Parameters
[in]idLatch id
[in]nameLatch name
[in]levelLatch level
[in]level_nameLatch level text representation
[in]keyPFS key

Member Function Documentation

◆ get_counter()

template<typename Counter = LatchCounter>
Counter * LatchMeta< Counter >::get_counter ( )
inline
Returns
the counter instance

◆ get_id()

template<typename Counter = LatchCounter>
latch_id_t LatchMeta< Counter >::get_id ( ) const
inline
Returns
the latch id

◆ get_level()

template<typename Counter = LatchCounter>
latch_level_t LatchMeta< Counter >::get_level ( ) const
inline
Returns
the latch level

◆ get_level_name()

template<typename Counter = LatchCounter>
const char * LatchMeta< Counter >::get_level_name ( ) const
inline
Returns
the latch level name

◆ get_name()

template<typename Counter = LatchCounter>
const char * LatchMeta< Counter >::get_name ( ) const
inline
Returns
the latch name

◆ get_pfs_key()

template<typename Counter = LatchCounter>
pfs_key_t LatchMeta< Counter >::get_pfs_key ( ) const
inline
Returns
the PFS key for the latch

◆ operator<()

template<typename Counter = LatchCounter>
bool LatchMeta< Counter >::operator< ( const LatchMeta< Counter > &  rhs) const
inline

Member Data Documentation

◆ m_counter

template<typename Counter = LatchCounter>
Counter LatchMeta< Counter >::m_counter
private

For gathering latch statistics.

◆ m_id

template<typename Counter = LatchCounter>
latch_id_t LatchMeta< Counter >::m_id
private

Latch id.

◆ m_level

template<typename Counter = LatchCounter>
latch_level_t LatchMeta< Counter >::m_level
private

Latch level in the ordering.

◆ m_level_name

template<typename Counter = LatchCounter>
const char* LatchMeta< Counter >::m_level_name
private

Latch level text representation.

◆ m_name

template<typename Counter = LatchCounter>
const char* LatchMeta< Counter >::m_name
private

Latch name.

◆ m_pfs_key

template<typename Counter = LatchCounter>
pfs_key_t LatchMeta< Counter >::m_pfs_key
private

PFS key.


The documentation for this class was generated from the following file: