MXS-2017 Move maxscale::Semaphore to maxbase::Semaphore

This commit is contained in:
Johan Wikman
2018-08-17 13:00:01 +03:00
parent 25c81b118d
commit d8255d0cac
17 changed files with 71 additions and 88 deletions

View File

@ -15,8 +15,8 @@
#include <maxscale/ccdefs.hh>
#include <atomic>
#include <maxbase/semaphore.hh>
#include <maxscale/monitor.h>
#include <maxscale/semaphore.hh>
#include <maxscale/worker.hh>
namespace maxscale
@ -209,10 +209,10 @@ protected:
private:
std::atomic<bool> m_thread_running; /**< Thread state. Only visible inside MonitorInstance. */
int32_t m_shutdown; /**< Non-zero if the monitor should shut down. */
bool m_checked; /**< Whether server access has been checked. */
Semaphore m_semaphore; /**< Semaphore for synchronizing with monitor thread. */
int64_t m_loop_called; /**< When was the loop called the last time. */
int32_t m_shutdown; /**< Non-zero if the monitor should shut down. */
bool m_checked; /**< Whether server access has been checked. */
mxb::Semaphore m_semaphore; /**< Semaphore for synchronizing with monitor thread. */
int64_t m_loop_called; /**< When was the loop called the last time. */
bool pre_run() final;
void post_run() final;