Fold thread state into poll stats

This commit is contained in:
Johan Wikman
2017-04-12 22:54:53 +03:00
parent 30d7f52852
commit 3ac619bfec
5 changed files with 14 additions and 43 deletions

View File

@ -65,18 +65,6 @@ typedef enum
THREAD_ZPROCESSING
} THREAD_STATE;
// TODO: Temporarily moved here.
/**
* Thread data used to report the current state and activity related to
* a thread
*/
typedef struct
{
THREAD_STATE state; /*< Current thread state */
} THREAD_DATA;
extern THREAD_DATA *thread_data;
// TODO: Temporarily moved here.
/**
* The number of buckets used to gather statistics about how many
@ -92,6 +80,7 @@ extern THREAD_DATA *thread_data;
// 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 */