The thread state is now a property of the worker

A worker's state is not statistics, but transient information.
This commit is contained in:
Johan Wikman
2017-04-18 12:56:23 +03:00
parent effa2f5674
commit 722d6da46f
4 changed files with 49 additions and 59 deletions

View File

@ -52,19 +52,6 @@ typedef struct mxs_poll_data
} thread;
} MXS_POLL_DATA;
// TODO: Temporarily moved here.
/**
* Internal MaxScale thread states
*/
typedef enum
{
THREAD_STOPPED,
THREAD_IDLE,
THREAD_POLLING,
THREAD_PROCESSING,
THREAD_ZPROCESSING
} THREAD_STATE;
// TODO: Temporarily moved here.
/**
* The number of buckets used to gather statistics about how many
@ -80,7 +67,6 @@ typedef enum
// TODO: Temporarily moved here.
typedef struct
{
THREAD_STATE thread_state; /*< The thread state. */
int64_t n_read; /*< Number of read events */
int64_t n_write; /*< Number of write events */
int64_t n_error; /*< Number of error events */