MySQL 26.10.0
Source Code Documentation
hm::Monitored_path_cache Class Reference

Store and synchronize the effective automatic monitored path. More...

#include <health_monitor_monitored_path.h>

Public Member Functions

void store (const std::optional< std::string > &path)
 
void request_refresh ()
 
uint64_t generation () const
 
bool begin_refresh ()
 
bool select (const std::string &configured_path, std::string &effective_path, uint64_t &generation) const
 

Private Attributes

std::mutex m_mutex
 
std::optional< std::string > m_path
 
bool m_refresh_requested {false}
 
bool m_refresh_in_progress {false}
 
uint64_t m_generation {0}
 

Detailed Description

Store and synchronize the effective automatic monitored path.

Member Function Documentation

◆ begin_refresh()

bool hm::Monitored_path_cache::begin_refresh ( )
inline

◆ generation()

uint64_t hm::Monitored_path_cache::generation ( ) const
inline

◆ request_refresh()

void hm::Monitored_path_cache::request_refresh ( )
inline

◆ select()

bool hm::Monitored_path_cache::select ( const std::string &  configured_path,
std::string &  effective_path,
uint64_t &  generation 
) const
inline

◆ store()

void hm::Monitored_path_cache::store ( const std::optional< std::string > &  path)
inline

Member Data Documentation

◆ m_generation

uint64_t hm::Monitored_path_cache::m_generation {0}
private

◆ m_mutex

std::mutex hm::Monitored_path_cache::m_mutex
mutableprivate

◆ m_path

std::optional<std::string> hm::Monitored_path_cache::m_path
private

◆ m_refresh_in_progress

bool hm::Monitored_path_cache::m_refresh_in_progress {false}
private

◆ m_refresh_requested

bool hm::Monitored_path_cache::m_refresh_requested {false}
private

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