MXS-2314 Remove unnecessary worker states

The removed states were not used for anything useful.
This commit is contained in:
Johan Wikman
2019-02-08 17:04:27 +02:00
parent 6425d4ed0c
commit 72d02d33c0
4 changed files with 1 additions and 15 deletions

View File

@ -298,10 +298,8 @@ public:
enum state_t
{
STOPPED,
IDLE,
POLLING,
PROCESSING,
ZPROCESSING
};
enum execute_mode_t

View File

@ -535,7 +535,7 @@ void Worker::run(mxb::Semaphore* pSem)
if (pre_run())
{
m_state = IDLE;
m_state = PROCESSING;
if (pSem)
{
@ -886,8 +886,6 @@ void Worker::poll_waitevents()
}
epoll_tick();
m_state = IDLE;
} /*< while(1) */
}