MySQL 9.1.0
Source Code Documentation
My_xp_thread_server Class Reference

#include <my_xp_thread.h>

Inheritance diagram for My_xp_thread_server:
[legend]

Public Member Functions

 My_xp_thread_server ()
 
 ~My_xp_thread_server () override
 
int create (PSI_thread_key key, const native_thread_attr_t *attr, native_start_routine func, void *arg) override
 Creates thread. More...
 
int create_detached (PSI_thread_key key, native_thread_attr_t *attr, native_start_routine func, void *arg) override
 Creates a detached thread. More...
 
int join (void **value_ptr) override
 Suspend invoking thread until this thread terminates. More...
 
int cancel () override
 Cancel this thread. More...
 
native_thread_tget_native_thread () override
 Retrieves native thread reference. More...
 
- Public Member Functions inherited from My_xp_thread
virtual ~My_xp_thread ()=default
 

Protected Attributes

native_thread_handlem_thread_handle
 

Constructor & Destructor Documentation

◆ My_xp_thread_server()

My_xp_thread_server::My_xp_thread_server ( )
explicit

◆ ~My_xp_thread_server()

My_xp_thread_server::~My_xp_thread_server ( )
override

Member Function Documentation

◆ cancel()

int My_xp_thread_server::cancel ( )
overridevirtual

Cancel this thread.

Returns
success status

Implements My_xp_thread.

◆ create()

int My_xp_thread_server::create ( PSI_thread_key  key,
const native_thread_attr_t attr,
native_start_routine  func,
void *  arg 
)
overridevirtual

Creates thread.

Parameters
keythread instrumentation key
attrthread attributes
funcroutine function
argfunction parameters
Returns
success status

Implements My_xp_thread.

◆ create_detached()

int My_xp_thread_server::create_detached ( PSI_thread_key  key,
native_thread_attr_t attr,
native_start_routine  func,
void *  arg 
)
overridevirtual

Creates a detached thread.

Parameters
keythread instrumentation key
attrthread attributes
funcroutine function
argfunction parameters
Returns
success status

Implements My_xp_thread.

◆ get_native_thread()

native_thread_t * My_xp_thread_server::get_native_thread ( )
overridevirtual

Retrieves native thread reference.

Returns
native thread pointer

Implements My_xp_thread.

◆ join()

int My_xp_thread_server::join ( void **  value_ptr)
overridevirtual

Suspend invoking thread until this thread terminates.

Parameters
value_ptrpointer for a placeholder for the terminating thread status
Returns
success status

Implements My_xp_thread.

Member Data Documentation

◆ m_thread_handle

native_thread_handle* My_xp_thread_server::m_thread_handle
protected

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