MXS-1848 Move Worker from internal to public include dir

maxscale::Worker needs to be public if monitors should be
implementable using it.
This commit is contained in:
Johan Wikman
2018-05-08 15:49:58 +03:00
parent 370b3be576
commit 42c10cfa1c
16 changed files with 36 additions and 33 deletions

View File

@ -23,6 +23,31 @@
MXS_BEGIN_DECLS
/**
* A statistic identifier that can be returned by poll_get_stat
*/
typedef enum
{
POLL_STAT_READ,
POLL_STAT_WRITE,
POLL_STAT_ERROR,
POLL_STAT_HANGUP,
POLL_STAT_ACCEPT,
POLL_STAT_EVQ_LEN,
POLL_STAT_EVQ_MAX,
POLL_STAT_MAX_QTIME,
POLL_STAT_MAX_EXECTIME
} POLL_STAT;
/*
* Return a particular statistics value.
*
* @param stat What to return.
*
* @return The value.
*/
int64_t poll_get_stat(POLL_STAT stat);
/*
* Insert a fake hangup event for a DCB into the polling queue.
*