MySQL 8.4.0
Source Code Documentation
buf_page_t::io_responsibility_t Class Reference

Public Member Functions

bool someone_is_responsible () const
 Checks if there is any thread responsible for I/O on this page now. More...
 
bool current_thread_is_responsible () const
 Checks if the current thread is responsible for I/O on this page now. More...
 
void release ()
 Called by the thread responsible for I/O on this page to release its responsibility. More...
 
void take ()
 Called by the thread which becomes responsible for I/O on this page to indicate that it takes the responsibility. More...
 

Private Attributes

std::thread::id responsible_thread {std::thread().get_id()}
 The thread responsible for I/O on this page, or an impossible value if no thread is currently responsible for I/O. More...
 

Member Function Documentation

◆ current_thread_is_responsible()

bool buf_page_t::io_responsibility_t::current_thread_is_responsible ( ) const
inline

Checks if the current thread is responsible for I/O on this page now.

Returns
true iff the current thread is responsible for I/O on this page.

◆ release()

void buf_page_t::io_responsibility_t::release ( )
inline

Called by the thread responsible for I/O on this page to release its responsibility.

◆ someone_is_responsible()

bool buf_page_t::io_responsibility_t::someone_is_responsible ( ) const
inline

Checks if there is any thread responsible for I/O on this page now.

Returns
true iff there is a thread responsible for I/O on this page.

◆ take()

void buf_page_t::io_responsibility_t::take ( )
inline

Called by the thread which becomes responsible for I/O on this page to indicate that it takes the responsibility.

Member Data Documentation

◆ responsible_thread

std::thread::id buf_page_t::io_responsibility_t::responsible_thread {std::thread().get_id()}
private

The thread responsible for I/O on this page, or an impossible value if no thread is currently responsible for I/O.


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