MXS-2178 Reduce accessbility of workarounds

Some rearrangements to ensure that what should be private
can be kept private.

- WatchdogNotifier made a friend.
- WatchdogWorkaround defined in RoutingWorker and made a friend.
- mxs::WatchdogWorker defined with 'using'.
This commit is contained in:
Johan Wikman
2018-11-21 12:59:37 +02:00
parent 78829429ae
commit f1a113aff0
2 changed files with 50 additions and 70 deletions

View File

@ -183,7 +183,7 @@ public:
, m_terminate(false)
{
m_thread = std::thread([this] {
uint32_t interval = mxs::RoutingWorker::get_internal_watchdog_interval();
uint32_t interval = mxs::RoutingWorker::s_watchdog_interval.secs();
timespec timeout = { interval, 0 };
while (!mxb::atomic::load(&m_terminate, mxb::atomic::RELAXED))