MySQL 9.1.0
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 , THREAD_NONE = 0 , THREAD_CREATED ,
  THREAD_INIT , THREAD_RUNNING , THREAD_TERMINATED , THREAD_END
}
 Maintains thread status. More...
 
enum  thread_state_enum {
  THREAD_NONE = 0 , THREAD_CREATED , THREAD_INIT , THREAD_RUNNING ,
  THREAD_TERMINATED , THREAD_END , THREAD_NONE = 0 , THREAD_CREATED ,
  THREAD_INIT , THREAD_RUNNING , THREAD_TERMINATED , THREAD_END
}
 

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
 
 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 [1/2]

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.

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.

◆ thread_state_enum [2/2]

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.

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() [1/2]

thread_state::thread_state ( )
inline

◆ thread_state() [2/2]

thread_state::thread_state ( )
inline

Member Function Documentation

◆ is_alive_not_running() [1/2]

bool thread_state::is_alive_not_running ( ) const
inline

◆ is_alive_not_running() [2/2]

bool thread_state::is_alive_not_running ( ) const
inline

◆ is_initialized() [1/2]

bool thread_state::is_initialized ( ) const
inline

◆ is_initialized() [2/2]

bool thread_state::is_initialized ( ) const
inline

◆ is_running() [1/2]

bool thread_state::is_running ( ) const
inline

◆ is_running() [2/2]

bool thread_state::is_running ( ) const
inline

◆ is_thread_alive() [1/2]

bool thread_state::is_thread_alive ( ) const
inline

◆ is_thread_alive() [2/2]

bool thread_state::is_thread_alive ( ) const
inline

◆ is_thread_dead() [1/2]

bool thread_state::is_thread_dead ( ) const
inline

◆ is_thread_dead() [2/2]

bool thread_state::is_thread_dead ( ) const
inline

◆ set_created() [1/2]

void thread_state::set_created ( )
inline

◆ set_created() [2/2]

void thread_state::set_created ( )
inline

◆ set_initialized() [1/2]

void thread_state::set_initialized ( )
inline

◆ set_initialized() [2/2]

void thread_state::set_initialized ( )
inline

◆ set_running() [1/2]

void thread_state::set_running ( )
inline

◆ set_running() [2/2]

void thread_state::set_running ( )
inline

◆ set_terminated() [1/2]

void thread_state::set_terminated ( )
inline

◆ set_terminated() [2/2]

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 files: