MySQL 26.7.0
Source Code Documentation
mysql::csa::Resource_entry Struct Reference

Entry for a named resource, managing available count and synchronization. More...

#include <resource_monitor.h>

Public Member Functions

 Resource_entry ()=default
 Default constructible. More...
 

Public Attributes

std::atomic< long long > m_available {0}
 Currently available amount of the resource. More...
 
std::atomic< long long > m_limit {0}
 Resource limit. More...
 
PSI_stage_infom_stage {nullptr}
 Waiting stage set only if the requested amount is higher than currently available and thread waits for the resource to be released. More...
 

Detailed Description

Entry for a named resource, managing available count and synchronization.

Constructor & Destructor Documentation

◆ Resource_entry()

mysql::csa::Resource_entry::Resource_entry ( )
default

Default constructible.

Member Data Documentation

◆ m_available

std::atomic<long long> mysql::csa::Resource_entry::m_available {0}

Currently available amount of the resource.

◆ m_limit

std::atomic<long long> mysql::csa::Resource_entry::m_limit {0}

Resource limit.

◆ m_stage

PSI_stage_info* mysql::csa::Resource_entry::m_stage {nullptr}

Waiting stage set only if the requested amount is higher than currently available and thread waits for the resource to be released.


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