MXS-2218 Add functionality for mxs_clock

This commit is contained in:
Johan Wikman
2019-01-08 09:43:41 +02:00
parent 2d2f62ed6f
commit 026bf747e6
2 changed files with 30 additions and 7 deletions

View File

@ -48,6 +48,8 @@ public:
void show_tasks(DCB* pDcb) const;
json_t* tasks_to_json(const char* zhost) const;
static int64_t ticks();
private:
bool pre_run() override;
void post_run() override;
@ -75,6 +77,7 @@ private:
};
bool call_task(Worker::Call::action_t action, Task* pTask);
static bool inc_ticks(Worker::Call::action_t action);
std::map<std::string, Task> m_tasks_by_name;
};