MySQL 8.4.1
Source Code Documentation
MDL_lock::Ticket_list Class Reference

Public Types

typedef I_P_List< MDL_ticket, I_P_List_adapter< MDL_ticket, &MDL_ticket::next_in_lock, &MDL_ticket::prev_in_lock >, I_P_List_null_counter, I_P_List_fast_push_back< MDL_ticket > > List
 

Public Member Functions

 operator const List & () const
 
 Ticket_list ()
 
void add_ticket (MDL_ticket *ticket)
 Add ticket to MDL_lock's list of waiting requests and update corresponding bitmap of lock types. More...
 
void remove_ticket (MDL_ticket *ticket)
 Remove ticket from MDL_lock's list of requests and update corresponding bitmap of lock types. More...
 
bool is_empty () const
 
bitmap_t bitmap () const
 

Private Member Functions

void clear_bit_if_not_in_list (enum_mdl_type type)
 Clear bit corresponding to the type of metadata lock in bitmap representing set of such types if list of tickets does not contain ticket with such type. More...
 

Private Attributes

List m_list
 List of tickets. More...
 
bitmap_t m_bitmap
 Bitmap of types of tickets in this list. More...
 

Member Typedef Documentation

◆ List

Constructor & Destructor Documentation

◆ Ticket_list()

MDL_lock::Ticket_list::Ticket_list ( )
inline

Member Function Documentation

◆ add_ticket()

void MDL_lock::Ticket_list::add_ticket ( MDL_ticket ticket)

Add ticket to MDL_lock's list of waiting requests and update corresponding bitmap of lock types.

◆ bitmap()

bitmap_t MDL_lock::Ticket_list::bitmap ( ) const
inline

◆ clear_bit_if_not_in_list()

void MDL_lock::Ticket_list::clear_bit_if_not_in_list ( enum_mdl_type  type)
private

Clear bit corresponding to the type of metadata lock in bitmap representing set of such types if list of tickets does not contain ticket with such type.

Parameters
[in]typeType of metadata lock to look up in the list.

◆ is_empty()

bool MDL_lock::Ticket_list::is_empty ( ) const
inline

◆ operator const List &()

MDL_lock::Ticket_list::operator const List & ( ) const
inline

◆ remove_ticket()

void MDL_lock::Ticket_list::remove_ticket ( MDL_ticket ticket)

Remove ticket from MDL_lock's list of requests and update corresponding bitmap of lock types.

Member Data Documentation

◆ m_bitmap

bitmap_t MDL_lock::Ticket_list::m_bitmap
private

Bitmap of types of tickets in this list.

◆ m_list

List MDL_lock::Ticket_list::m_list
private

List of tickets.


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