Fold thread state into poll stats
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user