MySQL 8.0.40
Source Code Documentation
Mysql_thread_task Class Reference

#include <mysql_thread.h>

Public Member Functions

void * operator new (size_t size, const std::nothrow_t &) noexcept
 
void operator delete (void *ptr, const std::nothrow_t &) noexcept
 
void * operator new (size_t size) noexcept
 Allocate memory on the heap with instrumented memory allocation, so that memory consumption can be tracked. More...
 
void operator delete (void *ptr) noexcept
 Deallocate memory on the heap with instrumented memory allocation, so that memory consumption can be tracked. More...
 
 Mysql_thread_task (Mysql_thread_body *body, Mysql_thread_body_parameters *parameters)
 
virtual ~Mysql_thread_task ()
 
void execute ()
 Execute task, calling body function with parameters. More...
 
bool is_finished ()
 Check if the task did finish. More...
 

Private Attributes

Mysql_thread_bodym_body {nullptr}
 
Mysql_thread_body_parametersm_parameters {nullptr}
 
std::atomic< bool > m_finished {false}
 

Constructor & Destructor Documentation

◆ Mysql_thread_task()

Mysql_thread_task::Mysql_thread_task ( Mysql_thread_body body,
Mysql_thread_body_parameters parameters 
)
inline

◆ ~Mysql_thread_task()

virtual Mysql_thread_task::~Mysql_thread_task ( )
inlinevirtual

Member Function Documentation

◆ execute()

void Mysql_thread_task::execute ( )

Execute task, calling body function with parameters.

◆ is_finished()

bool Mysql_thread_task::is_finished ( )

Check if the task did finish.

Returns
did the task finish?
Return values
falseNo
trueYes

◆ operator delete() [1/2]

void Mysql_thread_task::operator delete ( void *  ptr)
inlinenoexcept

Deallocate memory on the heap with instrumented memory allocation, so that memory consumption can be tracked.

Parameters
[in]ptrpointer to the allocated memory

◆ operator delete() [2/2]

void Mysql_thread_task::operator delete ( void *  ptr,
const std::nothrow_t &   
)
inlinenoexcept

◆ operator new() [1/2]

void * Mysql_thread_task::operator new ( size_t  size)
inlinenoexcept

Allocate memory on the heap with instrumented memory allocation, so that memory consumption can be tracked.

Parameters
[in]sizememory size to be allocated
Returns
pointer to the allocated memory, or NULL if memory could not be allocated.

◆ operator new() [2/2]

void * Mysql_thread_task::operator new ( size_t  size,
const std::nothrow_t &   
)
inlinenoexcept

Member Data Documentation

◆ m_body

Mysql_thread_body* Mysql_thread_task::m_body {nullptr}
private

◆ m_finished

std::atomic<bool> Mysql_thread_task::m_finished {false}
private

◆ m_parameters

Mysql_thread_body_parameters* Mysql_thread_task::m_parameters {nullptr}
private

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