MySQL 9.1.0
Source Code Documentation
dict_sync_check Struct Reference

Functor to check for dictionary latching constraints. More...

#include <sync0types.h>

Inheritance diagram for dict_sync_check:
[legend]

Public Member Functions

 dict_sync_check (bool dict_mutex_allowed)
 Constructor. More...
 
 ~dict_sync_check () override=default
 Destructor. More...
 
bool operator() (const latch_level_t level) override
 Check the latching constraints. More...
 
virtual bool result () const override
 
- Public Member Functions inherited from sync_check_functor_t
virtual ~sync_check_functor_t ()=default
 

Private Attributes

bool m_result
 True if all OK. More...
 
const bool m_dict_mutex_allowed
 True if it is OK to hold the dict mutex. More...
 

Detailed Description

Functor to check for dictionary latching constraints.

Constructor & Destructor Documentation

◆ dict_sync_check()

dict_sync_check::dict_sync_check ( bool  dict_mutex_allowed)
inlineexplicit

Constructor.

Parameters
[in]dict_mutex_allowedtrue if the dict mutex is allowed

◆ ~dict_sync_check()

dict_sync_check::~dict_sync_check ( )
overridedefault

Destructor.

Member Function Documentation

◆ operator()()

bool dict_sync_check::operator() ( const latch_level_t  level)
inlineoverridevirtual

Check the latching constraints.

Parameters
[in]levelThe level held by the thread

Implements sync_check_functor_t.

◆ result()

virtual bool dict_sync_check::result ( ) const
inlineoverridevirtual
Returns
the result of the check

Implements sync_check_functor_t.

Member Data Documentation

◆ m_dict_mutex_allowed

const bool dict_sync_check::m_dict_mutex_allowed
private

True if it is OK to hold the dict mutex.

◆ m_result

bool dict_sync_check::m_result
private

True if all OK.


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