MySQL  8.0.19
Source Code Documentation
thread_state Struct Reference

#include <plugin_utils.h>

Public Types

enum  thread_state_enum {
  THREAD_NONE = 0, THREAD_CREATED, THREAD_INIT, THREAD_RUNNING,
  THREAD_TERMINATED, THREAD_END
}
 Maintains thread status. More...
 

Public Member Functions

 thread_state ()
 
void set_running ()
 
void set_terminated ()
 
void set_initialized ()
 
void set_created ()
 
bool is_initialized () const
 
bool is_running () const
 
bool is_alive_not_running () const
 
bool is_thread_alive () const
 
bool is_thread_dead () const
 

Private Attributes

thread_state_enum thread_state_var
 

Member Enumeration Documentation

◆ thread_state_enum

Maintains thread status.

Enumerator
THREAD_NONE 

THREAD_NOT_CREATED.

THREAD_CREATED 

THREAD_CREATED.

THREAD_INIT 

THREAD_INIT.

THREAD_RUNNING 

THREAD_RUNNING.

THREAD_TERMINATED 

THREAD_EXIT.

THREAD_END 

END OF ENUM.

Constructor & Destructor Documentation

◆ thread_state()

thread_state::thread_state ( )
inline

Member Function Documentation

◆ is_alive_not_running()

bool thread_state::is_alive_not_running ( ) const
inline

◆ is_initialized()

bool thread_state::is_initialized ( ) const
inline

◆ is_running()

bool thread_state::is_running ( ) const
inline

◆ is_thread_alive()

bool thread_state::is_thread_alive ( ) const
inline

◆ is_thread_dead()

bool thread_state::is_thread_dead ( ) const
inline

◆ set_created()

void thread_state::set_created ( )
inline

◆ set_initialized()

void thread_state::set_initialized ( )
inline

◆ set_running()

void thread_state::set_running ( )
inline

◆ set_terminated()

void thread_state::set_terminated ( )
inline

Member Data Documentation

◆ thread_state_var

thread_state_enum thread_state::thread_state_var
private

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